From e6ea34e381df757d5e98ceeebe5ab3e98106a621 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Wed, 24 Dec 2025 12:11:25 -0800 Subject: [PATCH] Include standard ArtNet broadcast addresses in auto-detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add 255.255.255.255 (limited broadcast) and 2.255.255.255 (classic ArtNet subnet) to the auto-detected broadcast list. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- main.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 9ebef48..31f7261 100644 --- a/main.go +++ b/main.go @@ -358,9 +358,21 @@ func detectBroadcastAddrs() []*net.UDPAddr { var addrs []*net.UDPAddr seen := make(map[string]bool) + // Always include standard ArtNet broadcast addresses + // 255.255.255.255 - limited broadcast (may not work on all networks) + // 2.255.255.255 - classic ArtNet subnet broadcast + for _, ip := range []net.IP{ + net.IPv4(255, 255, 255, 255), + net.IPv4(2, 255, 255, 255), + } { + key := ip.String() + seen[key] = true + addrs = append(addrs, &net.UDPAddr{IP: ip, Port: artnet.Port}) + } + ifaces, err := net.Interfaces() if err != nil { - return nil + return addrs } for _, iface := range ifaces {