firewalld防火墙优先

This commit is contained in:
midoks
2023-02-12 02:03:57 +08:00
parent 72643b7776
commit ad3d93cf8b
+4 -4
View File
@@ -34,13 +34,13 @@ class firewall_api:
def __init__(self):
iptables_file = mw.systemdCfgDir() + '/iptables.service'
if os.path.exists(iptables_file):
self.__isIptables = True
if os.path.exists('/usr/sbin/firewalld'):
self.__isFirewalld = True
if os.path.exists('/usr/sbin/ufw'):
elif os.path.exists(iptables_file):
self.__isIptables = True
elif os.path.exists('/usr/sbin/ufw'):
self.__isUfw = True
if mw.isAppleSystem():
elif mw.isAppleSystem():
self.__isMac = True
##### ----- start ----- ###