fix: scheme doesnt use colons

This commit is contained in:
Derrick Hammer 2024-01-07 05:28:05 -05:00
parent 52f08335a2
commit 581ff5120d
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

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