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

View File

@ -102,8 +102,8 @@ unsigned int CIcomNetwork::read(unsigned char* data)
if (length <= 0) if (length <= 0)
return 0U; return 0U;
if (!CUDPSocket::match(m_addr, addr)) { if (!CUDPSocket::match(m_addr, addr, IMT_ADDRESS_ONLY)) {
LogWarning("Icom Data received from an unknown address or port"); LogWarning("Icom Data received from an unknown address");
return 0U; return 0U;
} }

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2015,2016,2017,2018,2020 by Jonathan Naylor G4KLX * Copyright (C) 2015,2016,2017,2018,2020,2023 by Jonathan Naylor G4KLX
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -19,6 +19,6 @@
#if !defined(VERSION_H) #if !defined(VERSION_H)
#define VERSION_H #define VERSION_H
const char* VERSION = "20230212"; const char* VERSION = "20231112";
#endif #endif