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,8 +845,10 @@ int zmq::socket_base_t::connect (const char *addr_)
while (isalnum (*check)
|| isxdigit (*check)
|| *check == '.' || *check == '-' || *check == ':' || *check == '%'
|| *check == ';' || *check == ']')
|| *check == ';' || *check == ']' || *check == '_'
) {
check++;
}
}
// Assume the worst, now look for success
rc = -1;