mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
fix: fixed gateway parsing on osx
This commit is contained in:
parent
e0d9c14fc3
commit
383a293bf5
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ func FindInterface(name string) (*Endpoint, error) {
|
|||
}
|
||||
|
||||
func FindGateway(iface *Endpoint) (*Endpoint, error) {
|
||||
output, err := core.Exec("route", []string{"-n", "-A", "inet"})
|
||||
output, err := core.Exec("netstat", []string{"-n", "-r"})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue