Update firewall_api.py
This commit is contained in:
parent
78296d996c
commit
c7014b624b
|
|
@ -390,7 +390,7 @@ class firewall_api:
|
|||
|
||||
def getFwStatus(self):
|
||||
if self.__isUfw:
|
||||
cmd = "/usr/sbin/ufw status | awk -F ':' '{print $2}'"
|
||||
cmd = "/usr/sbin/ufw status| grep Status | awk -F ':' '{print $2}'"
|
||||
data = mw.execShell(cmd)
|
||||
if data[0].strip() == 'inactive':
|
||||
return False
|
||||
|
|
|
|||
Loading…
Reference in New Issue