Loosen packet source check in RAW mode.

This commit is contained in:
Jonathan Naylor
2023-10-18 19:59:03 +01:00
parent e91f640e7e
commit b6269c73da
2 changed files with 11 additions and 4 deletions

View File

@@ -300,9 +300,16 @@ void CFMNetwork::clock(unsigned int ms)
return;
// Check if the data is for us
if (!CUDPSocket::match(addr, m_addr)) {
LogMessage("FM packet received from an invalid source");
return;
if (m_protocol == FMNP_USRP) {
if (!CUDPSocket::match(addr, m_addr, IMT_ADDRESS_AND_PORT)) {
LogMessage("FM packet received from an invalid source");
return;
}
} else {
if (!CUDPSocket::match(addr, m_addr, IMT_ADDRESS_ONLY)) {
LogMessage("FM packet received from an invalid source");
return;
}
}
if (!m_enabled)

View File

@@ -19,6 +19,6 @@
#if !defined(VERSION_H)
#define VERSION_H
const char* VERSION = "20231017";
const char* VERSION = "20231018";
#endif