From 2a0ee369f1f1b447d5d244f29874cdd2e1d67d0e Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Wed, 10 May 2023 16:13:42 +0200 Subject: [PATCH] use 127.0.0.1 for these tests Signed-off-by: Csaba Kiraly --- libp2pdht/private/eth/p2p/discoveryv5/protocol.nim | 4 ++-- libp2pdht/private/eth/p2p/discoveryv5/transport.nim | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim b/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim index 26794f4..12ed3f7 100644 --- a/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim +++ b/libp2pdht/private/eth/p2p/discoveryv5/protocol.nim @@ -1163,7 +1163,7 @@ proc newProtocol*( bootstrapRecords: openArray[SignedPeerRecord] = [], previousRecord = none[SignedPeerRecord](), bindPort: Port, - bindIp = IPv4_any(), + bindIp = IPv4_loopback(), enrAutoUpdate = false, config = defaultDiscoveryConfig, rng = newRng(), @@ -1230,7 +1230,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 7299423..5ecbeff 100644 --- a/libp2pdht/private/eth/p2p/discoveryv5/transport.nim +++ b/libp2pdht/private/eth/p2p/discoveryv5/transport.nim @@ -205,7 +205,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