mirror of https://gitlab.com/bashrc2/epicyon
Expect a user agent
parent
0068b2b8cd
commit
f5930daf41
|
@ -460,6 +460,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if self.headers.get('User-Agent'):
|
if self.headers.get('User-Agent'):
|
||||||
agentDomain = userAgentDomain(self.headers['User-Agent'],
|
agentDomain = userAgentDomain(self.headers['User-Agent'],
|
||||||
self.server.debug)
|
self.server.debug)
|
||||||
|
else:
|
||||||
|
return True
|
||||||
blockedUA = False
|
blockedUA = False
|
||||||
if not agentDomain:
|
if not agentDomain:
|
||||||
if self.server.userAgentDomainRequired:
|
if self.server.userAgentDomainRequired:
|
||||||
|
|
Loading…
Reference in New Issue