Fix Flex 127.0.0.1 error

pull/1584/head
Mike Black W9MDB 2024-07-11 22:26:11 -05:00
rodzic f5ad3c64bf
commit 8cc51f5ad7
1 zmienionych plików z 6 dodań i 3 usunięć

Wyświetl plik

@ -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)
{