Don't block Yggdrasil switch

main
Neil Alexander 2020-07-16 15:19:26 +01:00
parent fbf139f20e
commit 986498f5a5
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944
1 changed files with 0 additions and 4 deletions

View File

@ -20,7 +20,6 @@ import (
"crypto/tls"
"encoding/hex"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"log"
@ -56,9 +55,6 @@ type Node struct {
}
func (n *Node) Dialer(_, address string) (net.Conn, error) {
if len(n.core.GetSwitchPeers()) == 0 {
return nil, errors.New("no peer connections available")
}
tokens := strings.Split(address, ":")
raw, err := hex.DecodeString(tokens[0])
if err != nil {