From b987734dc39085ab3951220ba0ebbf14dfff9f25 Mon Sep 17 00:00:00 2001 From: Jochen Hiller Date: Mon, 25 May 2020 15:26:11 +0200 Subject: [PATCH] Fix for #33: do not use loopbacK IP addresses --- network.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/network.go b/network.go index a3c2265..602aff0 100644 --- a/network.go +++ b/network.go @@ -67,6 +67,11 @@ func localIPv4MCastAddrs() ([]string, error) { // Not IPv4. continue } + // Fix #33: consider NOT loopback IP addresses + if addr.IP.IsLoopback() { + // do not use local address + continue + } addrs = append(addrs, addr.IP.String()) } }