diva: fix ip logging

This commit is contained in:
Hay1tsme 2023-11-20 11:29:10 -05:00
parent 2ec1dcadef
commit dd1c7667e0

View File

@ -111,7 +111,7 @@ class DivaServlet(BaseServlet):
self.logger.debug(f"Request: {url_data}\nHeaders: {url_header}")
self.logger.info(
f"{req_cls.cmd} request from {req_cls.kc_serial}/{req_cls.b_serial} at {req.getClientAddress().host}"
f"{req_cls.cmd} request from {req_cls.kc_serial}/{req_cls.b_serial} at {Utils.get_ip_addr(request)}"
)
handler_str = f"handle_{req_cls.cmd}_request"