From 0563758eeccbd291380a94785b91b2e2856a7e0f Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 1 Feb 2024 22:16:22 +0200 Subject: [PATCH] try smth --- files/routes/static.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/static.py b/files/routes/static.py index a747645f8..72fa9f7d5 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -438,7 +438,7 @@ if SITE == 'watchpeopledie.tv': @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400) @limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID) def geoblock(): - ip = request.headers.get("X-Forwarded-For") + ip = request.remote_addr print(ip, flush=True) req = requests.get(f'http://ipinfo.io/{ip}/json') country = json.loads(req.text)