From 8cc51f5ad72c49f2c5d0f6da7d1a3fb9e6066509 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Thu, 11 Jul 2024 22:26:11 -0500 Subject: [PATCH] Fix Flex 127.0.0.1 error --- src/rig.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/rig.c b/src/rig.c index 24e1e5cb5..d61f46831 100644 --- a/src/rig.c +++ b/src/rig.c @@ -1075,9 +1075,12 @@ int HAMLIB_API rig_open(RIG *rig) || rig->caps->rig_model == RIG_MODEL_SMARTSDR_H ) { - rig_debug_clear(); - rig_debug(RIG_DEBUG_ERR, "%s: Do not use 127.0.0.1 for SmartSDR. Network Server entry needs to be the Radio's IP address, no port necessary\n", __func__); - return -RIG_EINVAL; + if (strstr(rp->pathname,"127.0.0.1")) + { + rig_debug_clear(); + rig_debug(RIG_DEBUG_ERR, "%s: Do not use 127.0.0.1 for SmartSDR. Network Server entry needs to be the Radio's IP address, no port necessary\n", __func__); + return -RIG_EINVAL; + } } if (RIG_BACKEND_NUM(rig->caps->rig_model) == RIG_ICOM) {