mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 05:23:19 -07:00
fix: fixed interface parsing on osx
This commit is contained in:
parent
e89fac94d8
commit
e0d9c14fc3
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ func FindInterface(name string) (*Endpoint, error) {
|
||||||
addrs, err := iface.Addrs()
|
addrs, err := iface.Addrs()
|
||||||
// is interface active?
|
// is interface active?
|
||||||
if err == nil && len(addrs) > 0 {
|
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
|
var e *Endpoint = nil
|
||||||
// For every address of the interface.
|
// For every address of the interface.
|
||||||
for _, addr := range addrs {
|
for _, addr := range addrs {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue