forked from rDrama/rDrama
dont print ip
parent
4bb82ea84b
commit
a27a6726e3
|
@ -439,7 +439,6 @@ if SITE == 'watchpeopledie.tv':
|
||||||
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
|
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
|
||||||
def geoblock():
|
def geoblock():
|
||||||
ip = request.headers.get("X-Forwarded-For")
|
ip = request.headers.get("X-Forwarded-For")
|
||||||
print(ip, flush=True)
|
|
||||||
req = requests.get(f'http://ipinfo.io/{ip}/json')
|
req = requests.get(f'http://ipinfo.io/{ip}/json')
|
||||||
country = json.loads(req.text)['country']
|
country = json.loads(req.text)['country']
|
||||||
if country == 'AU':
|
if country == 'AU':
|
||||||
|
|
Loading…
Reference in New Issue