From de3d1086c33712cc8509ce0e9deca6972ea76d67 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Sun, 12 Nov 2023 21:50:10 +0000 Subject: [PATCH] Only check the address on incoming Icom data. --- NXDNGateway/IcomNetwork.cpp | 4 ++-- NXDNGateway/Version.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/NXDNGateway/IcomNetwork.cpp b/NXDNGateway/IcomNetwork.cpp index 133796e..db58dbf 100644 --- a/NXDNGateway/IcomNetwork.cpp +++ b/NXDNGateway/IcomNetwork.cpp @@ -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; } diff --git a/NXDNGateway/Version.h b/NXDNGateway/Version.h index 2d357b3..e8d17bf 100644 --- a/NXDNGateway/Version.h +++ b/NXDNGateway/Version.h @@ -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 * it under the terms of the GNU General Public License as published by @@ -19,6 +19,6 @@ #if !defined(VERSION_H) #define VERSION_H -const char* VERSION = "20230212"; +const char* VERSION = "20231112"; #endif