diff --git a/setting.py b/setting.py index 6b0b4acf6..c60fd7c9e 100755 --- a/setting.py +++ b/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