Don't share global HS with any site
This commit is contained in:
parent
89beb12d59
commit
1549f2aa4d
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue