allow underscores in domain names

Since they are allowed

(They are not, however, allowed in hostnames)
This commit is contained in:
Min RK 2016-01-30 21:29:20 +01:00
parent add4e7675f
commit cdec4dc9ee

View File

@ -845,9 +845,11 @@ int zmq::socket_base_t::connect (const char *addr_)
while (isalnum (*check) while (isalnum (*check)
|| isxdigit (*check) || isxdigit (*check)
|| *check == '.' || *check == '-' || *check == ':' || *check == '%' || *check == '.' || *check == '-' || *check == ':' || *check == '%'
|| *check == ';' || *check == ']') || *check == ';' || *check == ']' || *check == '_'
) {
check++; check++;
} }
}
// Assume the worst, now look for success // Assume the worst, now look for success
rc = -1; rc = -1;
// Did we reach the end of the address safely? // Did we reach the end of the address safely?