Don't announce every bad nodeinfo access attempt

This commit is contained in:
bashrc committed 2026-10-07 14:24:45 +01:00
1 parent 6ecd97cc32
commit 9cacd7a841
1 file changed
+4 -3
+4 -3
View File
@@ -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