mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update firewall_api.py
This commit is contained in:
@@ -363,7 +363,7 @@ class firewall_api:
|
|||||||
else:
|
else:
|
||||||
if self.__isFirewalld:
|
if self.__isFirewalld:
|
||||||
port = port.replace(':', '-')
|
port = port.replace(':', '-')
|
||||||
cmd = 'firewall-cmd --permanent --zone=mw --add-port=' + port + '/tcp'
|
cmd = 'firewall-cmd --permanent --zone=public --add-port=' + port + '/tcp'
|
||||||
mw.execShell(cmd)
|
mw.execShell(cmd)
|
||||||
elif self.__isMac:
|
elif self.__isMac:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user