Use pregenerated address hash
This commit is contained in:
parent
64b4789bc1
commit
03573e46f5
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ class SitePlugin(object):
|
||||||
if "onion" in add_types:
|
if "onion" in add_types:
|
||||||
onion = self.connection_server.tor_manager.getOnion(site.address)
|
onion = self.connection_server.tor_manager.getOnion(site.address)
|
||||||
request["onions"].append(onion)
|
request["onions"].append(onion)
|
||||||
request["hashes"].append(hashlib.sha256(site.address).digest())
|
request["hashes"].append(site.address_hash)
|
||||||
|
|
||||||
# Tracker can remove sites that we don't announce
|
# Tracker can remove sites that we don't announce
|
||||||
if full_announce:
|
if full_announce:
|
||||||
|
|
Loading…
Reference in a new issue