fix: handling gracefully tun interfaces [2]

This commit is contained in:
evilsocket 2018-01-09 13:49:53 +01:00
commit c8a52d3256

View file

@ -81,11 +81,10 @@ func FindGateway(iface *Endpoint) (*Endpoint, error) {
} else {
// we have the address, now we need its mac
mac, err := ArpLookup(iface.Name(), gateway, false)
if err == nil {
return NewEndpoint(gateway, mac), nil
} else {
if err != nil {
fmt.Printf("%s\n", err)
}
return NewEndpoint(gateway, mac), nil
}
}
}