From 374f8dbe42329e15bd2ddf253b1fe47ca69bd0ee Mon Sep 17 00:00:00 2001 From: Grzegorz Latosinski Date: Thu, 21 Nov 2024 01:57:44 +0100 Subject: [PATCH] [#68643] devices: linux-client: daemon: net_utils: Fixed search for device'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 --- devices/linux-client/daemon/net_utils/net_utils.go | 1 - 1 file changed, 1 deletion(-) diff --git a/devices/linux-client/daemon/net_utils/net_utils.go b/devices/linux-client/daemon/net_utils/net_utils.go index 34a1a62..4966233 100644 --- a/devices/linux-client/daemon/net_utils/net_utils.go +++ b/devices/linux-client/daemon/net_utils/net_utils.go @@ -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") }