Update index.py

pull/628/head
Mr Chen 7 months ago
parent 218991d8d0
commit e1014a72bd
  1. 4
      plugins/fail2ban/index.py

@ -286,9 +286,7 @@ def getBlackList():
_black_list = getServerDir() + "/black_list.json" _black_list = getServerDir() + "/black_list.json"
conf = _read_conf(_black_list, l=1) conf = _read_conf(_black_list, l=1)
if not conf: if not conf:
return '' conf = []
if not conf:
return []
content = "\n".join(conf) content = "\n".join(conf)
return mw.returnJson(True, 'ok', content) return mw.returnJson(True, 'ok', content)

Loading…
Cancel
Save