Show user agent domain in debug

merge-requests/30/head
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,6 +473,7 @@ class PubServer(BaseHTTPRequestHandler):
agentDomain = agentDomain.replace(';', '')
if '.' not in agentDomain:
return None
if self.server.debug:
print('User-Agent Domain: ' + agentDomain)
return agentDomain