5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-22 23:25:39 +00:00

Fix merge conflict in tcp.go from d027a9ba75

This commit is contained in:
Neil Alexander 2018-10-04 12:26:08 +01:00
parent 69cd736112
commit 8eed15b813
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -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()