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 = []