changed websocket bind address to 0.0.0.0

Former-commit-id: e9258c831d
This commit is contained in:
Arthur Lu 2021-08-18 05:58:21 +00:00
parent ffead9e240
commit 20f2040a1a

View File

@ -225,7 +225,7 @@ def main_lin(pid_path):
break
clients = []
start_server = websockets.serve(handler, "127.0.0.1", 5678)
start_server = websockets.serve(handler, "0.0.0.0", 5678)
asyncio.get_event_loop().run_until_complete(start_server)
threading.Thread(target = asyncio.get_event_loop().run_forever).start()