pull/109/head
midoks 3 years ago
parent 8bf9de5dc3
commit 1be6406ff3
  1. 4
      class/core/firewall_api.py

@ -390,9 +390,9 @@ class firewall_api:
def getFwStatus(self):
if self.__isUfw:
cmd = "/usr/sbin/ufw status | grep inactive"
cmd = "/usr/sbin/ufw status | awk -F ':' '{print $2}'"
data = mw.execShell(cmd)
if data[0] == '':
if data[0].strip() == 'inactive':
return False
return True
if self.__isFirewalld:

Loading…
Cancel
Save