From 85e2c0a65c29f608452f88a1cc3bf55598952f33 Mon Sep 17 00:00:00 2001 From: Davide Beatrici Date: Sat, 24 Jan 2026 22:10:04 +0100 Subject: [PATCH] Don't announce any addresses with temporary repo Previously all detected IP addresses were announced! In addition to being a potentially serious privacy/security issue, that behavior poisons content retrieval because the node is only alive as long as download is in progress. --- node.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node.go b/node.go index 73d3839..9320eb8 100644 --- a/node.go +++ b/node.go @@ -118,6 +118,8 @@ func tmpNode(ctx context.Context) (iface.CoreAPI, error) { } // configure the temporary node + cfg.Addresses.Announce = nil // Don't announce any addresses + cfg.Routing.Type = config.NewOptionalString("dhtclient") cfg.Datastore.NoSync = true