Include port

main
Bob Mottram 2020-04-16 19:54:15 +01:00
parent 32fe09eda8
commit f86c7f461f
1 changed files with 1 additions and 1 deletions

View File

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