Don't lookup FQDN if no remote IP
This commit is contained in:
parent
b6825564c7
commit
cfa0bab9fc
|
@ -203,7 +203,7 @@ def index() -> str | Response:
|
||||||
lat=lat,
|
lat=lat,
|
||||||
lon=lon,
|
lon=lon,
|
||||||
remote_addr=remote_addr,
|
remote_addr=remote_addr,
|
||||||
fqdn=socket.getfqdn(remote_addr),
|
fqdn=socket.getfqdn(remote_addr) if remote_addr else None,
|
||||||
result=result,
|
result=result,
|
||||||
)
|
)
|
||||||
database.session.add(log)
|
database.session.add(log)
|
||||||
|
|
Loading…
Reference in a new issue