From 0059edcb8e8591f93f4bb92fb04d6c4319947060 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 21 Feb 2019 13:46:14 +0800 Subject: [PATCH] Update firewall_api.py --- class/core/firewall_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/class/core/firewall_api.py b/class/core/firewall_api.py index 3d9116a05..9eb6797e0 100755 --- a/class/core/firewall_api.py +++ b/class/core/firewall_api.py @@ -298,12 +298,12 @@ class firewall_api: def getFwStatus(self): if self.__isUfw: data = public.execShell( - "ps -ef|grep ufw |grep -v grep | grep -v python | awk '{print $2}'") + "ps -ef|grep ufw |grep -v grep | awk '{print $2}'") if data[0] == '': return False return True if self.__isFirewalld: - cmd = "ps -ef|grep firewalld |grep -v grep | grep -v python | awk '{print $2}'" + cmd = "ps -ef|grep firewalld |grep -v grep | awk '{print $2}'" print cmd data = public.execShell(cmd) if data[0] == '': @@ -313,7 +313,7 @@ class firewall_api: return False else: data = public.execShell( - "ps -ef|grep iptables |grep -v grep | grep -v python | awk '{print $2}'") + "ps -ef|grep iptables |grep -v grep | awk '{print $2}'") if data[0] == '': return False return True