provider: protect libp2p connections (#11028)
* provider: protect libp2p connections Use latest kad-dht version, introducing connection protection and retention of addresses in peerstore during provide operations. * depend on kad-dht master
Guillaume Michel committed
Oct 31, 2025 at 13:59 UTC
e05357ed196219015e260c4b9125d49546a27522
1 file changed
+1
-1
core/node/provider.go
+1
-1
@@ -415,7 +415,7 @@ func SweepingProviderOpt(cfg *config.Config) fx.Option {
415
dhtprovider.WithKeystore(ks),
416
dhtprovider.WithDatastore(ds),
417
dhtprovider.WithResumeCycle(cfg.Provide.DHT.ResumeEnabled.WithDefault(config.DefaultProvideDHTResumeEnabled)),
418
- dhtprovider.WithPeerID(impl.Host().ID()),
418
+ dhtprovider.WithHost(impl.Host()),
419
dhtprovider.WithRouter(impl),
420
dhtprovider.WithMessageSender(impl.MessageSender()),
421
dhtprovider.WithSelfAddrs(selfAddrsFunc),