diff --git a/tools.py b/tools.py index 0cb7b43c7..e44b9a3e2 100755 --- a/tools.py +++ b/tools.py @@ -92,6 +92,7 @@ def mwcli(mw_input=0): firewall_api.firewall_api().addAcceptPortArgs( in_port, 'WEB面板[TOOLS修改]', 'port') mw.writeFile('data/port.pl', in_port) + os.system(INIT_CMD + " restart") else: print("|-端口范围在0-65536之间") return