Show user agent domain in debug

main
Bob Mottram 2021-06-20 16:00:07 +01:00
parent 072b690f31
commit 746cc362e6
1 changed files with 2 additions and 1 deletions

View File

@ -473,7 +473,8 @@ class PubServer(BaseHTTPRequestHandler):
agentDomain = agentDomain.replace(';', '')
if '.' not in agentDomain:
return None
print('User-Agent Domain: ' + agentDomain)
if self.server.debug:
print('User-Agent Domain: ' + agentDomain)
return agentDomain
def _blockedUserAgent(self, callingDomain: str) -> bool: