Only check the address on incoming Icom data.

This commit is contained in:
Jonathan Naylor
2023-11-12 21:50:10 +00:00
parent 843f12e2ca
commit de3d1086c3
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -102,8 +102,8 @@ unsigned int CIcomNetwork::read(unsigned char* data)
if (length <= 0)
return 0U;
if (!CUDPSocket::match(m_addr, addr)) {
LogWarning("Icom Data received from an unknown address or port");
if (!CUDPSocket::match(m_addr, addr, IMT_ADDRESS_ONLY)) {
LogWarning("Icom Data received from an unknown address");
return 0U;
}