From aa19bcf2e0d4a14c63532b8bd1393429ff0a2ec3 Mon Sep 17 00:00:00 2001 From: caryoscelus Date: Wed, 29 Jun 2022 18:50:55 +0000 Subject: [PATCH] remove potential fingerprinting of site owner inspired by @geekless 's 829fd4678133e527d34ac395c6c5bf3da20f8050 commit at https://github.com/zeronet-enhanced/ZeroNet/commit/829fd4678133e527d34ac395c6c5bf3da20f8050 previously 0net would announce owned sites more frequently which can help determine site owner --- src/File/FileServer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/File/FileServer.py b/src/File/FileServer.py index e5fd4edf..7c803041 100644 --- a/src/File/FileServer.py +++ b/src/File/FileServer.py @@ -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)