forked from rDrama/rDrama
1
0
Fork 0
master
Aevann 2024-02-01 22:17:30 +02:00
parent 0563758eec
commit 9f57ed82a0
1 changed files with 1 additions and 1 deletions

View File

@ -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.remote_addr
ip = request.headers.get("X-Forwarded-For")
print(ip, flush=True)
req = requests.get(f'http://ipinfo.io/{ip}/json')
country = json.loads(req.text)