mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-01 02:15:12 +00:00
Don't announce every bad nodeinfo access attempt
This commit is contained in:
1 parent
6ecd97cc32
commit
9cacd7a841
1 file changed
+4
-3
+4
-3
@@ -397,9 +397,10 @@ def daemon_http_get(self) -> None:
|
||||
if not ua_str.strip():
|
||||
invalid_user_agent = True
|
||||
if invalid_user_agent:
|
||||
print('GET no user agent ' +
|
||||
str(self.headers).replace('\n', ' ') +
|
||||
' Path: ' + str(self.path))
|
||||
if not self.path.endswith('/nodeinfo'):
|
||||
print('GET no user agent ' +
|
||||
str(self.headers).replace('\n', ' ') +
|
||||
' Path: ' + str(self.path))
|
||||
http_400(self)
|
||||
return
|
||||
|
||||
|
||||
Reference in new issue
Block a user