mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 06:39:25 +08:00
端口FIX
This commit is contained in:
@@ -1 +0,0 @@
|
||||
7200
|
||||
+5
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user