Update firewall_api.py

pull/109/head
Mr Chen 6 years ago
parent c1238d523a
commit 1b26079c64
  1. 5
      class/core/firewall_api.py

@ -303,8 +303,9 @@ class firewall_api:
return False
return True
if self.__isFirewalld:
data = public.execShell(
"ps -ef|grep firewalld |grep -v grep | grep -v python | awk '{print $2}'")
cmd = "ps -ef|grep firewalld |grep -v grep | grep -v python | awk '{print $2}'"
print cmd
data = public.execShell(cmd)
if data[0] == '':
return False
return True

Loading…
Cancel
Save