From 8135778f1ebf4cc9b0cba2d202b82dbd90a17f8c Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 26 Jun 2022 23:43:17 +0800 Subject: [PATCH] up --- app.py | 4 ++-- setting.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 2b70e9f08..91064e880 100644 --- a/app.py +++ b/app.py @@ -22,8 +22,8 @@ try: f.close() HOST = '0.0.0.0' - if os.path.exists('data/ipv6.pl'): - HOST = "::1" + # if os.path.exists('data/ipv6.pl'): + # HOST = "::1" http_server = WSGIServer( (HOST, PORT), app, handler_class=WebSocketHandler) diff --git a/setting.py b/setting.py index 0e55d6b19..6b0b4acf6 100755 --- a/setting.py +++ b/setting.py @@ -37,7 +37,7 @@ bind = [] bind.append('0.0.0.0:%s' % mw_port) if os.path.exists('data/ipv6.pl'): - bind.append('[::1]:%s' % mw_port) + bind.append('[0:0:0:0:0:0:0:0]:%s' % mw_port) if workers > 2: workers = 2