mirror of
https://github.com/bettercap/bettercap
synced 2025-07-10 15:23:30 -07:00
refact: refactored to use islazy and updated deps
This commit is contained in:
parent
a2b3ee79fb
commit
d070445225
238 changed files with 12662 additions and 1586 deletions
|
@ -11,7 +11,7 @@ func FindGateway(iface *Endpoint) (*Endpoint, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
gw := core.Trim(output)
|
||||
gw := str.Trim(output)
|
||||
if IPv4Validator.MatchString(gw) {
|
||||
// we have the address, now we need its mac
|
||||
mac, err := ArpLookup(iface.Name(), gw, false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue