From ae4f3851e5d48fc745a4a74b1efca84d7a7f275a Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 25 Nov 2024 02:20:47 +0800 Subject: [PATCH] Update index.py --- plugins/pureftp/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/pureftp/index.py b/plugins/pureftp/index.py index 15d6535ed..d84534d2d 100755 --- a/plugins/pureftp/index.py +++ b/plugins/pureftp/index.py @@ -88,8 +88,8 @@ def contentReplace(content): def ftp_release_port(port): from collections import namedtuple try: - import firewall_api - firewall_api.firewall_api().addAcceptPortArgs(port, 'pure-ftpd', 'port') + from utils.firewall import Firewall as MwFirewall + MwFirewall.instance().addAcceptPort(port, 'pure-ftpd', 'port') return port except Exception as e: return "Release failed {}".format(e)