From 4fad023afb1d779e11106c1c4f45ff2a9defb239 Mon Sep 17 00:00:00 2001 From: David Thorpe Date: Sat, 13 Mar 2021 19:19:31 +0100 Subject: [PATCH] Removed p2p interfaces from broadcasting --- pkg/mdns/util.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/mdns/util.go b/pkg/mdns/util.go index 5f17fb79..7e08dabc 100644 --- a/pkg/mdns/util.go +++ b/pkg/mdns/util.go @@ -53,6 +53,9 @@ func multicastInterfaces(iface net.Interface) ([]net.Interface, error) { if (ifi.Flags & net.FlagMulticast) == 0 { continue } + if (ifi.Flags & net.FlagPointToPoint) != 0 { + continue + } if addrs, err := ifi.MulticastAddrs(); err != nil || len(addrs) == 0 { continue }