firewalld防火墙优先

pull/368/head
midoks 2 years ago
parent 72643b7776
commit ad3d93cf8b
  1. 8
      class/core/firewall_api.py

@ -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 ----- ###

Loading…
Cancel
Save