diff --git a/app.py b/app.py index 71d7015..56615f8 100644 --- a/app.py +++ b/app.py @@ -85,7 +85,7 @@ def ip_lookup(): d = jf(b) or {} hdrs = {k: v for k, v in request.headers.items() if k.lower() in ("user-agent","accept-language","x-forwarded-for","cf-connecting-ip","cf-ipcountry","x-real-ip")} - proxy_hint = any(k.lower().startswith(("x-forwarded","via","proxy")) for k in request.headers) + proxy_hint = any(k.lower().startswith(("x-forwarded","via","proxy")) for k in request.headers.keys()) rows = [ ("YOUR IP", f"{d.get('query', ip)}"), ("Country", f"{d.get('country','?')} ({d.get('countryCode','?')}) 🏴 {d.get('flag') if 'flag' in d else ''}".strip()),