same as last commit

pull/116/head
Aevann 2023-02-09 10:00:01 +02:00
parent c8dea2b4b3
commit 6250a75f00
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

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