mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-09 15:26:04 +00:00
allow underscores in domain names
Since they are allowed (They are not, however, allowed in hostnames)
This commit is contained in:
parent
add4e7675f
commit
cdec4dc9ee
@ -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?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user