forked from rDrama/rDrama
same as last commit
parent
c8dea2b4b3
commit
6250a75f00
|
@ -60,9 +60,6 @@ if "load_chat" in argv:
|
||||||
def get_CF():
|
def get_CF():
|
||||||
with app.app_context():
|
with app.app_context():
|
||||||
x = request.headers.get('CF-Connecting-IP')
|
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
|
if x: return x
|
||||||
return request.remote_addr
|
return request.remote_addr
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,11 @@ def get_ID():
|
||||||
else:
|
else:
|
||||||
x = "logged_out"
|
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}'
|
return f'{SITE}-{x}'
|
||||||
|
|
||||||
def get_logged_in_user():
|
def get_logged_in_user():
|
||||||
|
|
Loading…
Reference in New Issue