mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 14:35:31 +00:00
Handle rejected M17 RF transmissions.
This commit is contained in:
parent
f216ee4e04
commit
97a00ef2a3
4 changed files with 25 additions and 14 deletions
|
|
@ -683,6 +683,7 @@ bool CM17Control::processRFHeader(bool lateEntry)
|
|||
if (type != M17_ENCRYPTION_TYPE_NONE) {
|
||||
LogMessage("M17, access attempt with encryption from %s to %s", m_source.c_str(), m_dest.c_str());
|
||||
m_rfState = RS_RF_REJECTED;
|
||||
writeJSON("rejected", RS_RF_AUDIO, m_source, m_dest);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -692,6 +693,7 @@ bool CM17Control::processRFHeader(bool lateEntry)
|
|||
if (!ret) {
|
||||
LogMessage("M17, invalid access attempt from %s to %s", m_source.c_str(), m_dest.c_str());
|
||||
m_rfState = RS_RF_REJECTED;
|
||||
writeJSON("rejected", RS_RF_AUDIO, m_source, m_dest);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue