mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
new: keeping track of interface index
This commit is contained in:
parent
4dfdab3201
commit
529d834815
3 changed files with 3 additions and 0 deletions
|
@ -94,6 +94,7 @@ func FindInterface(name string) (*Endpoint, error) {
|
|||
if len(e.HW) == 0 {
|
||||
return nil, fmt.Errorf("Could not detect interface hardware address.")
|
||||
}
|
||||
e.Index = iface.Index
|
||||
return e, nil
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue