ipv6也支持ipv4访问

pull/109/head
midoks 3 years ago
parent b285e18d8a
commit 43792fc936
  1. 4
      setting.py

@ -34,10 +34,10 @@ else:
mw.writeFile('data/port.pl', mw_port)
bind = []
bind.append('0.0.0.0:%s' % mw_port)
if os.path.exists('data/ipv6.pl'):
bind.append('[0:0:0:0:0:0:0:0]:%s' % mw_port)
else:
bind.append('0.0.0.0:%s' % mw_port)
if workers > 2:
workers = 2

Loading…
Cancel
Save