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():