From 4aeea39c10e830d932eb436ad2a47e1c69963595 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 28 Jan 2023 01:53:03 +0100 Subject: [PATCH] packages/hyprspace: fix PeXRouting --- packages/networking/hyprspace/p2p/pex.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/networking/hyprspace/p2p/pex.go b/packages/networking/hyprspace/p2p/pex.go index a4275fe..67c9b40 100644 --- a/packages/networking/hyprspace/p2p/pex.go +++ b/packages/networking/hyprspace/p2p/pex.go @@ -82,7 +82,7 @@ func RequestPeX(ctx context.Context, host host.Host, peers []peer.ID) (addrInfos for { str, err := buf.ReadString('\n') if err == io.EOF { - return nil, err + return addrInfos, nil } else if checkErrPeX(err, s) { return nil, err }