diff --git a/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim b/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim index 91fc8a9..cb7fe63 100644 --- a/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim +++ b/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim @@ -1032,7 +1032,7 @@ proc newProtocol*( bootstrapRecords: openArray[SignedPeerRecord] = [], previousRecord = none[SignedPeerRecord](), bindPort: Port, - bindIp = IPv4_any(), + bindIp = IPv4_loopback(), enrAutoUpdate = false, config = defaultDiscoveryConfig, rng = newRng(), @@ -1099,7 +1099,7 @@ proc newProtocol*( bindPort: Port, record: SignedPeerRecord, bootstrapRecords: openArray[SignedPeerRecord] = [], - bindIp = IPv4_any(), + bindIp = IPv4_loopback(), config = defaultDiscoveryConfig, rng = newRng(), providers = ProvidersManager.new(SQLiteDatastore.new(Memory) diff --git a/libp2pdht/private/eth/p2p/discoveryv5/transport.nim b/libp2pdht/private/eth/p2p/discoveryv5/transport.nim index 0f60d14..9364927 100644 --- a/libp2pdht/private/eth/p2p/discoveryv5/transport.nim +++ b/libp2pdht/private/eth/p2p/discoveryv5/transport.nim @@ -260,7 +260,7 @@ proc newTransport*[T]( privKey: PrivateKey, localNode: Node, bindPort: Port, - bindIp = IPv4_any(), + bindIp = IPv4_loopback(), ## we could use 127.0.0.1 here for local tests rng = newRng()): Transport[T]= # TODO Consider whether this should be a Defect