From ac11da28c0c83c343f2755f7b3ce9906db4f26f6 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 10 Jan 2024 09:37:27 -0500 Subject: [PATCH] fix: pass SelfConnectionUris to NewHandshakeDoneRequest --- protocol/handshake_open.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/protocol/handshake_open.go b/protocol/handshake_open.go index c6ac073..a4f9850 100644 --- a/protocol/handshake_open.go +++ b/protocol/handshake_open.go @@ -9,7 +9,6 @@ import ( "git.lumeweb.com/LumeWeb/libs5-go/protocol/signed" "git.lumeweb.com/LumeWeb/libs5-go/types" "github.com/vmihailenco/msgpack/v5" - "net/url" ) var _ base.IncomingMessageTyped = (*HandshakeOpen)(nil) @@ -101,7 +100,7 @@ func (h *HandshakeOpen) HandleMessage(node interfaces.Node, peer net.Peer, verif return fmt.Errorf("Peer is in different network: %s", h.networkId) } - handshake := signed.NewHandshakeDoneRequest(h.handshake, types.SupportedFeatures, []*url.URL{}) + handshake := signed.NewHandshakeDoneRequest(h.handshake, types.SupportedFeatures, node.Services().P2P().SelfConnectionUris()) message, err := msgpack.Marshal(handshake) if err != nil {