remove potential fingerprinting of site owner

inspired by @geekless 's 829fd46781 commit at
829fd46781

previously 0net would announce owned sites more frequently
which can help determine site owner
This commit is contained in:
caryoscelus 2022-06-29 18:50:55 +00:00
parent 981769b051
commit aa19bcf2e0

View file

@ -313,8 +313,8 @@ class FileServer(ConnectionServer):
def announceSite(self, site):
site.announce(mode="update", pex=False)
active_site = time.time() - site.settings.get("modified", 0) < 24 * 60 * 60
if site.settings["own"] or active_site:
# Check connections more frequently on own and active sites to speed-up first connections
if active_site:
# Check connections more frequently on active sites to speed-up first connections
site.needConnections(check_site_on_reconnect=True)
site.sendMyHashfield(3)
site.updateHashfield(3)