mirror of
https://github.com/renorris/openfsd
synced 2026-04-18 17:05:33 +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
|
// 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()
|
return NewProcessorResult()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user