pull/109/head
midoks 3 years ago
parent 376c48eff1
commit 23fd421bb2
  1. 1
      data/port.pl
  2. 7
      setting.py

@ -1 +0,0 @@
7200

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

Loading…
Cancel
Save