|
|
|
@ -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 |
|
|
|
|