mirror of
https://github.com/yggdrasil-network/yggdrasil-go
synced 2024-11-09 23:20:26 +03:00
gofmt
This commit is contained in:
parent
d424489329
commit
869997e4c5
@ -84,9 +84,12 @@ func (n *node) init(cfg *nodeConfig, logger *log.Logger) {
|
||||
for {
|
||||
for _, p := range cfg.Peers {
|
||||
switch {
|
||||
case len(p) >= 4 && p[:4] == "udp:": n.core.DEBUG_maybeSendUDPKeys(p[4:])
|
||||
case len(p) >= 4 && p[:4] == "tcp:": n.core.DEBUG_addTCPConn(p[4:])
|
||||
default: n.core.DEBUG_addTCPConn(p)
|
||||
case len(p) >= 4 && p[:4] == "udp:":
|
||||
n.core.DEBUG_maybeSendUDPKeys(p[4:])
|
||||
case len(p) >= 4 && p[:4] == "tcp:":
|
||||
n.core.DEBUG_addTCPConn(p[4:])
|
||||
default:
|
||||
n.core.DEBUG_addTCPConn(p)
|
||||
}
|
||||
time.Sleep(time.Second)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user