mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2026-05-22 05:46:30 +03:00
Don't spawn goroutines for addPeerLoop, TCP connect timeout of 5 seconds for now
This commit is contained in:
@@ -266,6 +266,7 @@ func (t *tcp) call(saddr string, options interface{}, sintf string) {
|
||||
}
|
||||
dialer := net.Dialer{
|
||||
Control: t.tcpContext,
|
||||
Timeout: time.Second * 5,
|
||||
}
|
||||
if sintf != "" {
|
||||
ief, err := net.InterfaceByName(sintf)
|
||||
|
||||
Reference in New Issue
Block a user