mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 18:57:17 -07:00
fix: logging improved
This commit is contained in:
parent
c8a52d3256
commit
10b05dd0eb
3 changed files with 12 additions and 6 deletions
|
@ -47,6 +47,9 @@ func FindInterface(name string) (*Endpoint, error) {
|
|||
}
|
||||
|
||||
if e != nil {
|
||||
if len(e.HW) == 0 {
|
||||
return nil, fmt.Errorf("Could not detect interface hardware address.")
|
||||
}
|
||||
return e, nil
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue