From 645eda6c9f912ac8ad756ffb87a035c97eddffbf Mon Sep 17 00:00:00 2001 From: purerosefallen <78877@qq.com> Date: Sat, 1 Jun 2019 23:43:04 +0800 Subject: [PATCH] for docker --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index aafcad4..93152d3 100644 --- a/server.py +++ b/server.py @@ -337,6 +337,6 @@ async def connection(ws, path): port = int(sys.argv[1]) if len(sys.argv) > 1 else 34802 print('Starting server on port %d' % port) asyncio.get_event_loop().run_until_complete( - websockets.serve(connection, "localhost", port) + websockets.serve(connection, "0.0.0.0", port) ) asyncio.get_event_loop().run_forever()