Fix ArtPollReply to advertise both input and output universes

This commit is contained in:
Ian Gulliver
2026-01-27 15:54:32 -08:00
parent 9a694b5178
commit e48a7de384
6 changed files with 76 additions and 27 deletions

View File

@@ -56,8 +56,8 @@ func (s *Sender) SendPoll(addr *net.UDPAddr) error {
}
// SendPollReply sends an ArtPollReply to a specific address
func (s *Sender) SendPollReply(addr *net.UDPAddr, localIP [4]byte, shortName, longName string, universes []Universe) error {
pkt := BuildPollReplyPacket(localIP, shortName, longName, universes)
func (s *Sender) SendPollReply(addr *net.UDPAddr, localIP [4]byte, shortName, longName string, universes []Universe, isInput bool) error {
pkt := BuildPollReplyPacket(localIP, shortName, longName, universes, isInput)
_, err := s.conn.WriteToUDP(pkt, addr)
return err
}