Don't share global HS with any site

This commit is contained in:
shortcutme 2018-03-14 22:33:21 +01:00
parent 89beb12d59
commit 1549f2aa4d
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -216,7 +216,7 @@ class TorManager(object):
def addOnion(self): def addOnion(self):
if len(self.privatekeys) >= config.tor_hs_limit: if len(self.privatekeys) >= config.tor_hs_limit:
return random.choice(self.privatekeys.keys()) return random.choice([key for key in self.privatekeys.keys() if key != self.site_onions.get("global")])
result = self.makeOnionAndKey() result = self.makeOnionAndKey()
if result: if result: