diff --git a/src/yggdrasil/tcp.go b/src/yggdrasil/tcp.go index 8debba75..82673b9c 100644 --- a/src/yggdrasil/tcp.go +++ b/src/yggdrasil/tcp.go @@ -161,7 +161,9 @@ func (iface *tcpInterface) call(saddr string, socksaddr *string, sintf string) { dialer := net.Dialer{} if sintf != "" { ief, err := net.InterfaceByName(sintf) - if err == nil { + if err != nil { + return + } else { if ief.Flags & net.FlagUp == 0 { return }