From 7845d534083dfc102c57f9627065befb19e3a5bf Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 12 Sep 2021 13:01:58 +0100 Subject: [PATCH] Allow i2p domain as host --- daemon.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/daemon.py b/daemon.py index 754fcc64a..254eaebd1 100644 --- a/daemon.py +++ b/daemon.py @@ -11613,6 +11613,13 @@ class PubServer(BaseHTTPRequestHandler): print('GET domain blocked: ' + callingDomain) self._400() 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: if callingDomain != self.server.domain and \ callingDomain != self.server.domainFull: