Commit 26998b73 authored by Luca Boccassi's avatar Luca Boccassi Committed by GitHub

Merge pull request #2332 from bluca/parse_v4_mapped_in_v6

Problem: v4-in-v6 mapped addresses cause parsing failure
parents 0db22c00 18cb7cae
......@@ -842,7 +842,7 @@ int zmq::socket_base_t::connect (const char *addr_)
// Following code is quick and dirty check to catch obvious errors,
// without trying to be fully accurate.
const char *check = address.c_str ();
if (isalnum (*check) || isxdigit (*check) || *check == '[') {
if (isalnum (*check) || isxdigit (*check) || *check == '[' || *check == ':') {
check++;
while (isalnum (*check)
|| isxdigit (*check)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment