Don't lookup FQDN if no remote IP

This commit is contained in:
Edward Betts 2023-11-25 12:51:45 +00:00
parent b6825564c7
commit cfa0bab9fc

View file

@ -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)