pull/109/head
midoks 3 years ago
parent ca659eb4f1
commit 8135778f1e
  1. 4
      app.py
  2. 2
      setting.py

@ -22,8 +22,8 @@ try:
f.close() f.close()
HOST = '0.0.0.0' HOST = '0.0.0.0'
if os.path.exists('data/ipv6.pl'): # if os.path.exists('data/ipv6.pl'):
HOST = "::1" # HOST = "::1"
http_server = WSGIServer( http_server = WSGIServer(
(HOST, PORT), app, handler_class=WebSocketHandler) (HOST, PORT), app, handler_class=WebSocketHandler)

@ -37,7 +37,7 @@ bind = []
bind.append('0.0.0.0:%s' % mw_port) bind.append('0.0.0.0:%s' % mw_port)
if os.path.exists('data/ipv6.pl'): 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: if workers > 2:
workers = 2 workers = 2

Loading…
Cancel
Save