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,8 +845,10 @@ 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;
|
||||||
|
Reference in New Issue
Block a user