1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

fix http logging bug

This commit is contained in:
checktheroads
2020-04-16 01:09:37 -07:00
parent 306b3cc140
commit 99879c468e
4 changed files with 14 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ async def query(query_data: Query, request: Request):
if ip_address(request.client.host).is_loopback:
network_info = {"prefix": None, "asn": None}
else:
network_info = get_network_info("199.34.92.64")
network_info = get_network_info(request.client.host)
network_info = {
"prefix": str(network_info["prefix"]),
@@ -63,6 +63,7 @@ async def query(query_data: Query, request: Request):
"network": network_info,
},
params.logging.http,
log,
)
# Initialize cache