Update setting.py

pull/632/head
Mr Chen 6 months ago
parent 28def91c7d
commit 289f736160
  1. 4
      web/setting.py

@ -40,10 +40,8 @@ if os.path.exists(default_port_file):
panel_port.strip() panel_port.strip()
else: else:
from utils.firewall import Firewall as MwFirewall from utils.firewall import Firewall as MwFirewall
import common
common.initDB()
mw_port = str(random.randint(10000, 65530)) mw_port = str(random.randint(10000, 65530))
MwFirewall.instance().addAcceptPort(panel_port, 'WEB面板', 'port') MwFirewall.instance().addAcceptPort(panel_port, 'Panel端口', 'port')
mw.writeFile('data/port.pl', panel_port) mw.writeFile('data/port.pl', panel_port)
bind = [] bind = []

Loading…
Cancel
Save