use 127.0.0.1 for these tests

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2023-05-10 16:13:42 +02:00
parent 589a878985
commit 0d20e371b1
No known key found for this signature in database
GPG Key ID: 0FE274EE8C95166E
2 changed files with 3 additions and 3 deletions

View File

@ -1302,7 +1302,7 @@ proc newProtocol*(
bootstrapRecords: openArray[SignedPeerRecord] = [],
previousRecord = none[SignedPeerRecord](),
bindPort: Port,
bindIp = IPv4_any(),
bindIp = IPv4_loopback(),
enrAutoUpdate = false,
config = defaultDiscoveryConfig,
rng = newRng(),
@ -1369,7 +1369,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)

View File

@ -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