Allow .\com3\\ as a valid COM port address

pull/976/head
Mike Black W9MDB 2022-02-12 17:06:24 -06:00
rodzic e70db413a0
commit a770d5c0b3
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1982,8 +1982,8 @@ int HAMLIB_API parse_hoststr(char *hoststr, int hoststr_len, char host[256],
if (strncasecmp(hoststr, "com", 3) == 0) { return -1; }
// escaped COM port like \\.\COM3
if (strstr(hoststr, "\\\\.\\")) { return -1; }
// escaped COM port like \\.\COM3 or \.\COM3
if (strstr(hoststr, "\\.\\")) { return -1; }
// Now let's try and parse a host:port thing
// bracketed IPV6 with optional port