diff --git a/util/addr/addr.go b/util/addr/addr.go index b2874533..36a78f92 100644 --- a/util/addr/addr.go +++ b/util/addr/addr.go @@ -46,6 +46,9 @@ func Extract(addr string) (string, error) { // ignore error, interface can dissapear from system continue } + if iface.Flags&net.FlagLoopback != 0 { + continue + } addrs = append(addrs, ifaceAddrs...) }