mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
e5f645d771
commit
f9489a8d4e
3 changed files with 22 additions and 5 deletions
|
@ -3,7 +3,6 @@
|
|||
package network
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/bettercap/bettercap/core"
|
||||
|
@ -25,7 +24,7 @@ func FindGateway(iface *Endpoint) (*Endpoint, error) {
|
|||
// we have the address, now we need its mac
|
||||
mac, err := ArpLookup(iface.Name(), gateway, false)
|
||||
if err != nil {
|
||||
fmt.Printf("%s\n", err)
|
||||
return nil, err
|
||||
}
|
||||
return NewEndpoint(gateway, mac), nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue