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
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ class TorManager(object):
def addOnion(self):
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()
if result: