From 6189c2aaf5af11f8afd7d0cdac85de04c35dfec7 Mon Sep 17 00:00:00 2001 From: diegomrsantos Date: Fri, 17 Nov 2023 10:46:35 +0100 Subject: [PATCH] fix(dcutr): make the dcutr client inbound and the server outbound (#983) --- .../protocols/connectivity/dcutr/client.nim | 2 +- .../protocols/connectivity/dcutr/server.nim | 2 +- tests/testdcutr.nim | 30 +++++++++++-------- tests/testhpservice.nim | 22 +++----------- 4 files changed, 23 insertions(+), 33 deletions(-) diff --git a/libp2p/protocols/connectivity/dcutr/client.nim b/libp2p/protocols/connectivity/dcutr/client.nim index cda04c72a..19dda0cef 100644 --- a/libp2p/protocols/connectivity/dcutr/client.nim +++ b/libp2p/protocols/connectivity/dcutr/client.nim @@ -66,7 +66,7 @@ proc startSync*(self: DcutrClient, switch: Switch, remotePeerId: PeerId, addrs: if peerDialableAddrs.len > self.maxDialableAddrs: peerDialableAddrs = peerDialableAddrs[0.. maxDialableAddrs: peerDialableAddrs = peerDialableAddrs[0..