Update firewall_api.py

This commit is contained in:
midoks 2022-06-13 00:56:07 +08:00
parent 78296d996c
commit c7014b624b
1 changed files with 1 additions and 1 deletions

View File

@ -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