fix: logging improved

This commit is contained in:
evilsocket 2018-01-09 14:21:34 +01:00
commit 10b05dd0eb
3 changed files with 12 additions and 6 deletions

View file

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