mirror of
https://github.com/bettercap/bettercap.git
synced 2025-03-12 04:36:03 -07:00
fix: fixed interface parsing on osx
This commit is contained in:
parent
e89fac94d8
commit
e0d9c14fc3
@ -24,7 +24,7 @@ func FindInterface(name string) (*Endpoint, error) {
|
||||
addrs, err := iface.Addrs()
|
||||
// is interface active?
|
||||
if err == nil && len(addrs) > 0 {
|
||||
if (name == "" && iface.Name != "lo") || iface.Name == name {
|
||||
if (name == "" && iface.Name != "lo" && iface.Name != "lo0") || iface.Name == name {
|
||||
var e *Endpoint = nil
|
||||
// For every address of the interface.
|
||||
for _, addr := range addrs {
|
||||
|
Loading…
x
Reference in New Issue
Block a user