端口FIX

This commit is contained in:
midoks 2022-06-13 16:33:33 +08:00
parent 376c48eff1
commit 23fd421bb2
2 changed files with 5 additions and 3 deletions

View File

@ -1 +0,0 @@
7200

View File

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