This commit is contained in:
yumoqing 2026-05-12 16:53:13 +08:00
parent be368fb7ca
commit 5fc90a8033

View File

@ -45,7 +45,7 @@ where a.userid = u.id
debug(f'{apikey=} not registered') debug(f'{apikey=} not registered')
return None return None
rec = recs[0] rec = recs[0]
if rec.allowedips is None: if rec.allowedips is None or rec.allowedips == '':
return rec return rec
ips = rec.allowedips.split(',') ips = rec.allowedips.split(',')