log bad path ip addresses so that they can potentially be blocked

main
bashrc 2026-02-18 13:44:31 +00:00
parent f366e4ac22
commit 79e40ba194
1 changed files with 3 additions and 0 deletions

View File

@ -248,6 +248,9 @@ def daemon_http_get(self) -> None:
if self.server.starting_daemon:
return
if check_bad_path(self.path):
calling_ip_address = self.request.getpeername()
if calling_ip_address:
print('WARN: bad path ip address: ' + str(calling_ip_address))
http_400(self)
return