fix logical OR bug

This commit is contained in:
Reese Norris
2024-04-04 20:48:50 -07:00
parent 05ed593a4b
commit c2ca229940

View File

@@ -523,7 +523,7 @@ func RadioMessageProcessor(client *FSDClient, rawPacket string) *ProcessorResult
}
// Verify the To field is a radio frequency
if !strings.HasPrefix(pdu.To, "@") && len(pdu.To) != 6 {
if !strings.HasPrefix(pdu.To, "@") || len(pdu.To) != 6 {
return NewProcessorResult()
}