Skip to content

Commit 11da4b3

Browse files
committed
Disable address discovery
1 parent 176fa0e commit 11da4b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

comm/p2p/host.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ func NewHost(privKey crypto.PrivKey, networkTopology *topology.NetworkTopology,
3030
libp2p.DisableRelay(),
3131
libp2p.Security(noise.ID, noise.New),
3232
libp2p.ConnectionGater(cg),
33+
libp2p.DisableIdentifyAddressDiscovery(),
3334
}
3435

3536
h, err := libp2p.New(opts...)

0 commit comments

Comments
 (0)