main
Bob Mottram 2020-04-16 19:54:38 +01:00
parent f86c7f461f
commit 9dbcf8f20e
1 changed files with 2 additions and 1 deletions

View File

@ -793,7 +793,8 @@ class PubServer(BaseHTTPRequestHandler):
# check for blocked domains so that they can be rejected early
messageDomain = None
if messageJson.get('actor'):
messageDomain,messagePort = getDomainFromActor(messageJson['actor'])
messageDomain, messagePort = \
getDomainFromActor(messageJson['actor'])
if isBlockedDomain(self.server.baseDir, messageDomain):
print('POST from blocked domain ' + messageDomain)
self._400()