From a9530b0630965aea12bbb460f0329c48e48285b0 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 26 Sep 2023 21:34:38 +0800 Subject: [PATCH] Update firewall_api.py --- class/core/firewall_api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/class/core/firewall_api.py b/class/core/firewall_api.py index 44f89b39d..3462f608f 100755 --- a/class/core/firewall_api.py +++ b/class/core/firewall_api.py @@ -180,6 +180,7 @@ class firewall_api: msg = mw.getInfo('删除防火墙放行端口[{1}][{2}]成功!', (port, protocol,)) mw.writeLog("防火墙管理", msg) + mw.M('firewall').where("port=?", (port,)).delete() self.firewallReload() return True