reduce fingerprinting information sent to other nodes

version and revision are still accessible to users to see,
but not the other nodes. this will make it harder to collect
information for both informational, but also malicious purposes
This commit is contained in:
caryoscelus 2022-05-31 01:24:37 +04:00
parent 653efa71ac
commit 6517ebc432
1 changed files with 2 additions and 2 deletions

View File

@ -362,14 +362,14 @@ class Connection(object):
self.server.log.warning("Unknown target onion address: %s" % self.target_onion)
handshake = {
"version": config.version,
"version": "conservancy",
"protocol": "v2",
"use_bin_type": True,
"peer_id": peer_id,
"fileserver_port": self.server.port,
"port_opened": self.server.port_opened.get(self.ip_type, None),
"target_ip": self.ip,
"rev": config.rev,
"rev": 8192,
"crypt_supported": crypt_supported,
"crypt": self.crypt,
"time": int(time.time())