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