From 581ff5120d12a8663656d345a3bb12704f015e84 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 7 Jan 2024 05:28:05 -0500 Subject: [PATCH] fix: scheme doesnt use colons --- service/p2p.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/p2p.go b/service/p2p.go index 526e236..6cba975 100644 --- a/service/p2p.go +++ b/service/p2p.go @@ -115,7 +115,7 @@ func (p *P2PImpl) ConnectToNode(connectionUris []*url.URL, retried bool) error { var connectionUri *url.URL for _, uri := range connectionUris { - if uri.Scheme == "ws:" || uri.Scheme == "wss:" { + if uri.Scheme == "ws" || uri.Scheme == "wss" { connectionUri = uri break } @@ -123,7 +123,7 @@ func (p *P2PImpl) ConnectToNode(connectionUris []*url.URL, retried bool) error { if connectionUri == nil { for _, uri := range connectionUris { - if uri.Scheme == "tcp:" { + if uri.Scheme == "tcp" { connectionUri = uri break }