mirror of
https://github.com/renorris/openfsd
synced 2026-03-22 06:25:35 +08:00
fix logical OR bug
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user