From cfa0bab9fc4da793f2af553c3f211a7453a3a8b0 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sat, 25 Nov 2023 12:51:45 +0000 Subject: [PATCH] Don't lookup FQDN if no remote IP --- lookup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lookup.py b/lookup.py index c0529fb..66c30ab 100755 --- a/lookup.py +++ b/lookup.py @@ -203,7 +203,7 @@ def index() -> str | Response: lat=lat, lon=lon, remote_addr=remote_addr, - fqdn=socket.getfqdn(remote_addr), + fqdn=socket.getfqdn(remote_addr) if remote_addr else None, result=result, ) database.session.add(log)