main
Bob Mottram 2021-06-20 18:04:29 +01:00
parent 02b53231b9
commit 3030ddcd50
1 changed files with 2 additions and 2 deletions

View File

@ -467,11 +467,11 @@ class PubServer(BaseHTTPRequestHandler):
else: else:
return True return True
blockedUA = False
if not agentDomain: if not agentDomain:
if self.server.userAgentDomainRequired: if self.server.userAgentDomainRequired:
return True return True
return blockedUA return False
blockedUA = False
if not agentDomain.startswith(callingDomain): if not agentDomain.startswith(callingDomain):
blockedUA = isBlockedDomain(self.server.baseDir, agentDomain) blockedUA = isBlockedDomain(self.server.baseDir, agentDomain)
# if self.server.debug: # if self.server.debug: