From 67ce8e7ece7d14f00942fa438c21b57c41f8eb41 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 21 Jun 2021 10:27:40 +0100 Subject: [PATCH] Use blocked cache --- daemon.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index f8b0e91dc..d94daba49 100644 --- a/daemon.py +++ b/daemon.py @@ -494,7 +494,8 @@ class PubServer(BaseHTTPRequestHandler): self.server.blockedCacheLastUpdated, self.server.blockedCacheUpdateSecs) - blockedUA = isBlockedDomain(self.server.baseDir, agentDomain) + blockedUA = isBlockedDomain(self.server.baseDir, agentDomain, + self.server.blockedCache) # if self.server.debug: if blockedUA: print('Blocked User agent: ' + agentDomain) @@ -1226,7 +1227,8 @@ class PubServer(BaseHTTPRequestHandler): self.server.blockedCacheLastUpdated, self.server.blockedCacheUpdateSecs) - if isBlockedDomain(self.server.baseDir, messageDomain): + if isBlockedDomain(self.server.baseDir, messageDomain, + self.server.blockedCache): print('POST from blocked domain ' + messageDomain) self._400() self.server.POSTbusy = False