From 426af78dd88ee72d297a6180905f7f2338e9394d Mon Sep 17 00:00:00 2001 From: Karun Sandhu <129101708+MrSom3body@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:37:10 +0100 Subject: [PATCH] remove check for loopback address --- lib/system.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system.go b/lib/system.go index 48e474b..42306b7 100644 --- a/lib/system.go +++ b/lib/system.go @@ -131,7 +131,7 @@ func GetIpAddress(ifaceName string) string { } for _, addr := range addrs { - if ipNet, ok := addr.(*net.IPNet); ok && !ipNet.IP.IsLoopback() { + if ipNet, ok := addr.(*net.IPNet); ok { if ip := ipNet.IP.To4(); ip != nil { return ip.String() }