Skip to content

Commit

Permalink
Use only IPv4 for discovery. IPv6 discovery e.g. does not work from c…
Browse files Browse the repository at this point in the history
…ontainers. (#201)
  • Loading branch information
ptabor authored Dec 1, 2024
1 parent da6e6c1 commit 92f518d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dns/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ func DiscoverCastDNSEntryByName(ctx context.Context, iface *net.Interface, name
// DiscoverCastDNSEntries will return a channel with any cast dns entries
// found.
func DiscoverCastDNSEntries(ctx context.Context, iface *net.Interface) (<-chan CastEntry, error) {
var opts = []zeroconf.ClientOption{}
var opts = []zeroconf.ClientOption{
zeroconf.SelectIPTraffic(zeroconf.IPv4),
}
if iface != nil {
opts = append(opts, zeroconf.SelectIfaces([]net.Interface{*iface}))
}
Expand Down

0 comments on commit 92f518d

Please sign in to comment.