From f9ff25da22f39da483fe86e1f1232158d102bc86 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 1 Mar 2019 16:34:31 +0800 Subject: [PATCH] Update index.py --- plugins/l2tp/index.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/l2tp/index.py b/plugins/l2tp/index.py index 34a2cd76c..7f46c419d 100755 --- a/plugins/l2tp/index.py +++ b/plugins/l2tp/index.py @@ -100,6 +100,10 @@ def getUserList(): conf = public.readFile(path) conf = re.sub('#(.*)\n', '', conf) + + if conf.strip() == '': + return public.returnJson(True, 'ok', []) + ulist = conf.strip().split('\n') user = []