mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
Update setting.py
This commit is contained in:
@@ -47,6 +47,12 @@ if os.path.exists('data/ipv6.pl'):
|
||||
else:
|
||||
bind.append('0.0.0.0:%s' % mw_port)
|
||||
|
||||
|
||||
# 初始安装时,自动生成安全路径
|
||||
if not os.path.exists('data/admin_path.pl'):
|
||||
admin_path = mw.getRandomString(8)
|
||||
mw.writeFile('data/admin_path.pl', admin_path)
|
||||
|
||||
if workers > 2:
|
||||
workers = 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user