mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update setting.py
This commit is contained in:
+3
-3
@@ -48,9 +48,9 @@ if os.path.exists(default_port_file):
|
||||
panel_port.strip()
|
||||
else:
|
||||
from utils.firewall import Firewall as MwFirewall
|
||||
mw_port = str(random.randint(10000, 65530))
|
||||
MwFirewall.instance().addAcceptPort(mw_port, 'PANEL端口', 'port')
|
||||
mw.writeFile(default_port_file, mw_port)
|
||||
panel_port = str(random.randint(10000, 65530))
|
||||
MwFirewall.instance().addAcceptPort(panel_port, 'PANEL端口', 'port')
|
||||
mw.writeFile(default_port_file, panel_port)
|
||||
|
||||
bind = []
|
||||
default_ipv6_file = panel_dir+'/data/ipv6.pl'
|
||||
|
||||
Reference in New Issue
Block a user