Allow i2p domain as host

main
Bob Mottram 2021-09-12 13:01:58 +01:00
parent c0b53f95cb
commit 7845d53408
1 changed files with 7 additions and 0 deletions

View File

@ -11613,6 +11613,13 @@ class PubServer(BaseHTTPRequestHandler):
print('GET domain blocked: ' + callingDomain) print('GET domain blocked: ' + callingDomain)
self._400() self._400()
return return
elif self.server.i2pDomain:
if callingDomain != self.server.domain and \
callingDomain != self.server.domainFull and \
callingDomain != self.server.i2pDomain:
print('GET domain blocked: ' + callingDomain)
self._400()
return
else: else:
if callingDomain != self.server.domain and \ if callingDomain != self.server.domain and \
callingDomain != self.server.domainFull: callingDomain != self.server.domainFull: