Update firewall_api.py

This commit is contained in:
midoks 2023-02-14 21:07:22 +08:00
parent 96d0115257
commit cbcb686363
1 changed files with 2 additions and 2 deletions

View File

@ -36,10 +36,10 @@ class firewall_api:
iptables_file = mw.systemdCfgDir() + '/iptables.service'
if os.path.exists('/usr/sbin/firewalld'):
self.__isFirewalld = True
elif os.path.exists(iptables_file):
self.__isIptables = True
elif os.path.exists('/usr/sbin/ufw'):
self.__isUfw = True
elif os.path.exists(iptables_file):
self.__isIptables = True
elif mw.isAppleSystem():
self.__isMac = True