From 5fc90a803305f2a9c274fee76745c79d58247ca1 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 12 May 2026 16:53:13 +0800 Subject: [PATCH] bugfix --- dapi/dapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dapi/dapi.py b/dapi/dapi.py index 7c02a0b..d86709c 100644 --- a/dapi/dapi.py +++ b/dapi/dapi.py @@ -45,7 +45,7 @@ where a.userid = u.id debug(f'{apikey=} not registered') return None rec = recs[0] - if rec.allowedips is None: + if rec.allowedips is None or rec.allowedips == '': return rec ips = rec.allowedips.split(',')