1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Add a temp fix for zmq4 and ipv6

This patch is from

    https://github.com/freebsd/freebsd-ports/pull/31

which s based on

    81464652d2

Submitted by:	melvyn-sopacua (on github)
Approved by:	koobs (maintainer)
MFH:		2015Q3
This commit is contained in:
Li-Wen Hsu 2015-08-06 18:41:49 +00:00
parent a5ea67b1b1
commit bc0793319e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=393665
2 changed files with 21 additions and 0 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= libzmq4
PORTVERSION= 4.1.2
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://download.zeromq.org/
DISTNAME= zeromq-${DISTVERSION}

View File

@ -0,0 +1,20 @@
15f9ee19cb895f7fb7b6d09ec64d4b82717ee1aa
diff --git src/socket_base.cpp src/socket_base.cpp
index bddbaf2..79044b1 100644
--- src/socket_base.cpp
+++ src/socket_base.cpp
@@ -717,11 +717,12 @@ 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)) {
+ if (isalnum (*check) || isxdigit (*check) || *check == '[') {
check++;
while (isalnum (*check)
|| isxdigit (*check)
- || *check == '.' || *check == '-' || *check == ':'|| *check == ';')
+ || *check == '.' || *check == '-' || *check == ':'|| *check == ';'
+ || *check == ']')
check++;
}
// Assume the worst, now look for success