Skip to content

Commit

Permalink
[#68643] devices: linux-client: daemon: net_utils: Fixed search for d…
Browse files Browse the repository at this point in the history
…evice's MAC address

In case we have an interface with unassigned address,
the current implementation stops search for other
interfaces, skipping actual interface used by device
to communicate.

Signed-off-by: Grzegorz Latosinski <[email protected]>
  • Loading branch information
glatosinski committed Nov 21, 2024
1 parent ee12892 commit 374f8db
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion devices/linux-client/daemon/net_utils/net_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ func GetMacAddr() (string, error) {
return nifMAC, nil
}
}
return "", errors.New("Failed to get MAC address from a valid interface")
}
return "", errors.New("Failed to get MAC address")
}
Expand Down

0 comments on commit 374f8db

Please sign in to comment.