From f5930daf4183144492209aafe289b1e8ae81f5e2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 20 Jun 2021 16:59:16 +0100 Subject: [PATCH] Expect a user agent --- daemon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon.py b/daemon.py index 221a5c13c..37fe3ab9f 100644 --- a/daemon.py +++ b/daemon.py @@ -460,6 +460,8 @@ class PubServer(BaseHTTPRequestHandler): if self.headers.get('User-Agent'): agentDomain = userAgentDomain(self.headers['User-Agent'], self.server.debug) + else: + return True blockedUA = False if not agentDomain: if self.server.userAgentDomainRequired: