print debugging

pull/116/head
Aevann 2023-02-09 09:56:48 +02:00
parent 8449981617
commit c8dea2b4b3
1 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,9 @@ 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