From 60a1bfe67980c56169543f0e6fa9befb9a29fee4 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Mon, 25 Nov 2024 02:22:13 +0800 Subject: [PATCH] Update index.py --- plugins/pureftp/index.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/pureftp/index.py b/plugins/pureftp/index.py index 2e9436bfe..c7a88c4f7 100755 --- a/plugins/pureftp/index.py +++ b/plugins/pureftp/index.py @@ -400,8 +400,7 @@ def modFtpPort(): conf = mw.readFile(file) rep = r"\n#?\s*Bind\s+[0-9]+\.[0-9]+\.[0-9]+\.+[0-9]+,([0-9]+)" # preg_match(rep,conf,tmp) - conf = re.sub( - rep, "\nBind 0.0.0.0," + port, conf) + conf = re.sub(rep, "\nBind 0.0.0.0," + port, conf) mw.writeFile(file, conf) restart() return 'ok'