mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-23 16:48:08 +02:00
allow underscores in domain names
Since they are allowed (They are not, however, allowed in hostnames)
This commit is contained in:
@@ -845,9 +845,11 @@ 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;
|
||||
// Did we reach the end of the address safely?
|
||||
|
Reference in New Issue
Block a user