From e03dbb3e3c9764bf2cd3ac0317932ccbbb0707a3 Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Fri, 31 Jul 2026 15:46:20 +0100 Subject: [PATCH] Add default UDP address. Allow port 65535. --- plugins/channelrx/demodais/aisdemodsettings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/channelrx/demodais/aisdemodsettings.cpp b/plugins/channelrx/demodais/aisdemodsettings.cpp index dc3e32a3f..99e0e296b 100644 --- a/plugins/channelrx/demodais/aisdemodsettings.cpp +++ b/plugins/channelrx/demodais/aisdemodsettings.cpp @@ -139,7 +139,7 @@ bool AISDemodSettings::deserialize(const QByteArray& data) d.readFloat(4, &m_correlationThreshold, 30); d.readString(5, &m_filterMMSI, ""); d.readBool(6, &m_udpEnabled); - d.readString(7, &m_udpAddress); + d.readString(7, &m_udpAddress, "127.0.0.1"); d.readU32(8, &utmp); if ((utmp > 1023) && (utmp < 65535)) { @@ -163,7 +163,7 @@ bool AISDemodSettings::deserialize(const QByteArray& data) d.readString(17, &m_reverseAPIAddress, "127.0.0.1"); d.readU32(18, &utmp, 0); - if ((utmp > 1023) && (utmp < 65535)) { + if ((utmp > 1023) && (utmp <= 65535)) { m_reverseAPIPort = utmp; } else { m_reverseAPIPort = 8888;