From 46162c729648e24f74a5bc6040435dd07b2985eb Mon Sep 17 00:00:00 2001 From: Alexis Date: Sat, 14 Mar 2026 14:17:21 +0100 Subject: [PATCH] Fix Hamlib NET rigctl host:port handling The NET rigctl backend does not support the rig_port token. Passing only the hostname causes Hamlib to fallback to the default port 4532. Use the full host:port string in rig_pathname instead. --- src/rig/rigcontrol.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rig/rigcontrol.cpp b/src/rig/rigcontrol.cpp index c006eec..8dd4964 100644 --- a/src/rig/rigcontrol.cpp +++ b/src/rig/rigcontrol.cpp @@ -93,7 +93,9 @@ bool rigControl::init() } if(!catParams.serialPort.isEmpty()) { - strncpy(my_rig->state.rigport.pathname,(const char *)catParams.serialPort.toLatin1().data(),HAMLIB_FILPATHLEN-1); + rig_set_conf(my_rig, + rig_token_lookup(my_rig,"rig_pathname"), + catParams.serialPort.toLatin1().constData()); } my_rig->state.rigport.parm.serial.rate = catParams.baudrate; my_rig->state.rigport.parm.serial.data_bits=catParams.databits;