mirror of
https://github.com/wolfswolke/DeathGarden_API_Rebirth.git
synced 2026-07-06 19:55:26 -05:00
added dont print for localhost
This commit is contained in:
parent
46be993ff1
commit
30809274b6
|
|
@ -5,6 +5,8 @@ import yaml
|
|||
def _get_remote_ip():
|
||||
if request.environ.get('HTTP_X_FORWARDED_FOR') is None:
|
||||
ip_addr = request.environ['REMOTE_ADDR']
|
||||
if ip_addr == "127.0.0.1":
|
||||
return None
|
||||
print("New Connection from: " + ip_addr)
|
||||
return ip_addr
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user