fix: fixed gateway parsing on osx

This commit is contained in:
evilsocket 2018-01-13 14:34:29 +01:00
commit 383a293bf5

View file

@ -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
}