use 127.0.0.1 instead of full host name for websocket listening
This commit is contained in:
+2
-1
@@ -31,7 +31,8 @@ class Args:
|
||||
hostname = socket.gethostname()
|
||||
if '.' not in hostname:
|
||||
hostname += '.psi.ch'
|
||||
args['wsaddr'] = f'{hostname}:{webport}'
|
||||
# args['wsaddr'] = f'{hostname}:{webport}'
|
||||
args['wsaddr'] = f'127.0.0.1:{webport}'
|
||||
self.port = int(port)
|
||||
self.html = args.pop('html')
|
||||
self.args = args
|
||||
|
||||
Reference in New Issue
Block a user