Change rig_init logic to allow first char of '/' to mean a pathname and not a hostname

https://github.com/Hamlib/Hamlib/issues/492
pull/506/head
Michael Black W9MDB 2021-01-11 14:43:08 -06:00
rodzic 4571dcb2a5
commit 0ebdaee747
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -1636,6 +1636,7 @@ int HAMLIB_API parse_hoststr(char *hoststr, char host[256], char port[6])
// Handle device names 1st
if (strstr(hoststr, "/dev")) { return -1; }
if (strstr(hoststr, "/")) { return -1; } // posible path -- no hostname starts with /
if (strncasecmp(hoststr, "com", 3) == 0) { return -1; }