Skip to content

Commit

Permalink
Merge pull request #2332 from bluca/parse_v4_mapped_in_v6
Browse files Browse the repository at this point in the history
Problem: v4-in-v6 mapped addresses cause parsing failure
  • Loading branch information
bluca committed Feb 7, 2017
2 parents 0db22c0 + 18cb7ca commit 26998b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/socket_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 26998b7

Please sign in to comment.