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(',')