mirror of https://gitlab.com/bashrc2/epicyon
log bad path ip addresses so that they can potentially be blocked
parent
f366e4ac22
commit
79e40ba194
|
|
@ -248,6 +248,9 @@ def daemon_http_get(self) -> None:
|
||||||
if self.server.starting_daemon:
|
if self.server.starting_daemon:
|
||||||
return
|
return
|
||||||
if check_bad_path(self.path):
|
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)
|
http_400(self)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue