From 6250a75f007061908ed3077552e8e0f5162b9b7e Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 9 Feb 2023 10:00:01 +0200 Subject: [PATCH] same as last commit --- files/__main__.py | 3 --- files/routes/wrappers.py | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/files/__main__.py b/files/__main__.py index 534c88fbf..15e4c7efc 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -60,9 +60,6 @@ if "load_chat" in argv: def get_CF(): with app.app_context(): x = request.headers.get('CF-Connecting-IP') - if hasattr(g, "v") and g.v.id == 9: - print(x, flush=True) - print(request.remote_addr, flush=True) if x: return x return request.remote_addr diff --git a/files/routes/wrappers.py b/files/routes/wrappers.py index 4549e4bcc..eac0ab5de 100644 --- a/files/routes/wrappers.py +++ b/files/routes/wrappers.py @@ -18,6 +18,11 @@ def get_ID(): else: x = "logged_out" + if x == 9: + print(f'{SITE}-{x}', flush=True) + print(request.headers.get('CF-Connecting-IP'), flush=True) + print(request.remote_addr, flush=True) + return f'{SITE}-{x}' def get_logged_in_user():