Skip to content

Commit 85e2c0a

Browse files
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.
1 parent 41625b2 commit 85e2c0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

node.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ func tmpNode(ctx context.Context) (iface.CoreAPI, error) {
118118
}
119119

120120
// configure the temporary node
121+
cfg.Addresses.Announce = nil // Don't announce any addresses
122+
121123
cfg.Routing.Type = config.NewOptionalString("dhtclient")
122124

123125
cfg.Datastore.NoSync = true

0 commit comments

Comments
 (0)