From 739268774f41a9c25a10af328b7676586c6b509e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 1 Aug 2022 02:41:12 +0200 Subject: [PATCH] sneed --- files/helpers/wrappers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files/helpers/wrappers.py b/files/helpers/wrappers.py index ce7aca9d7b..ff0e65ce19 100644 --- a/files/helpers/wrappers.py +++ b/files/helpers/wrappers.py @@ -76,13 +76,16 @@ def get_logged_in_user(): if v: v.poor = session.get('poor') - if request.headers.get("Cf-Ipcountry") == 'EG' and not (v and v.id == AEVANN_ID): + if AEVANN_ID and request.headers.get("Cf-Ipcountry") == 'EG' and not (v and v.id == AEVANN_ID): with open(f"/eg", "r+", encoding="utf-8") as f: ip = request.headers.get('CF-Connecting-IP') if f'{v}, {ip}' not in f.read(): t = str(time.strftime("%d/%B/%Y %H:%M:%S UTC", time.gmtime(time.time()))) f.write(f'{f.read()}{v}, {ip}, {t}\n') + if not v and SITE != 'watchpeopledie.co': + abort(401) + return v def check_ban_evade(v):