diff --git a/src/yggdrasil/tcp.go b/src/yggdrasil/tcp.go index 8debba7..82673b9 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 }