From e1014a72bde5a9e86b9dc0d806aa5f519b69331d Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sat, 19 Oct 2024 23:10:50 +0800 Subject: [PATCH] Update index.py --- plugins/fail2ban/index.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/fail2ban/index.py b/plugins/fail2ban/index.py index d621fb607..d29f74ac5 100755 --- a/plugins/fail2ban/index.py +++ b/plugins/fail2ban/index.py @@ -286,9 +286,7 @@ def getBlackList(): _black_list = getServerDir() + "/black_list.json" conf = _read_conf(_black_list, l=1) if not conf: - return '' - if not conf: - return [] + conf = [] content = "\n".join(conf) return mw.returnJson(True, 'ok', content)