mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
balls
This commit is contained in:
parent
673818b931
commit
c9b06a1f95
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,8 @@ var IPv4RouteCmd = "netsh"
|
|||
var IPv4RouteCmdOpts = []string{"interface", "ipv4", "show", "route"}
|
||||
|
||||
func IPv4RouteIsGateway(ifname string, tokens []string, f func(gateway string) (*Endpoint, error)) (*Endpoint, error) {
|
||||
subnet := tokens[1]
|
||||
// TODO check if the subnet is the same as iface ?
|
||||
// subnet := tokens[1]
|
||||
gateway := tokens[2]
|
||||
return f(gateway)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue