Fix ArtPollReply to send to broadcast:6454 with proper MAC detection

This commit is contained in:
Ian Gulliver
2026-01-27 22:00:46 -08:00
parent e48a7de384
commit ae0b896883
5 changed files with 69 additions and 32 deletions

View File

@@ -96,3 +96,9 @@ func (r *Receiver) handlePacket(src *net.UDPAddr, data []byte) {
func (r *Receiver) LocalAddr() net.Addr {
return r.conn.LocalAddr()
}
// SendTo sends a raw packet through the receiver's socket (port 6454)
func (r *Receiver) SendTo(data []byte, addr *net.UDPAddr) error {
_, err := r.conn.WriteToUDP(data, addr)
return err
}