This commit is contained in:
midoks
2022-12-28 23:21:07 +08:00
parent af733ac28a
commit ddeef3c17e
2 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -456,8 +456,8 @@ class firewall_api:
elif self.__isMac:
return False
else:
cmd = "ps -ef|grep iptables |grep -v grep | awk '{print $2}'"
cmd = "systemctl status iptables | grep 'inactive'"
data = mw.execShell(cmd)
if data[0] == '':
if data[0] != '':
return False
return True