diff --git a/data/port.pl b/data/port.pl deleted file mode 100755 index d4fd586e0..000000000 --- a/data/port.pl +++ /dev/null @@ -1 +0,0 @@ -7200 \ No newline at end of file diff --git a/setting.py b/setting.py index d8d7cdf9e..0248aa7c4 100755 --- a/setting.py +++ b/setting.py @@ -25,9 +25,12 @@ workers = cpu_info[1] if not os.path.exists(os.getcwd() + '/logs'): os.mkdir(os.getcwd() + '/logs') -mw_port = mw.readFile('data/port.pl') -if mw_port: +# default port +mw_port = 7200 +if os.path.exists("data/port.pl"): + mw_port = mw.readFile('data/port.pl') mw_port.strip() + bind = [] if os.path.exists('data/ipv6.pl'): bind.append('[0:0:0:0:0:0:0:0]:%s' % mw_port)