mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 07:56:09 +00:00
Issue 42 - getaddrinfo() fails
This commit is contained in:
parent
aedf3f808b
commit
5b1a6a4bea
@ -289,11 +289,8 @@ int zmq::resolve_ip_hostname (sockaddr_storage *addr_, socklen_t *addr_len_,
|
|||||||
// doesn't really matter, since it's not included in the addr-output.
|
// doesn't really matter, since it's not included in the addr-output.
|
||||||
req.ai_socktype = SOCK_STREAM;
|
req.ai_socktype = SOCK_STREAM;
|
||||||
|
|
||||||
// Avoid named services due to unclear socktype, and don't pick IPv4
|
// Avoid named services due to unclear socktype.
|
||||||
// addresses if we don't have a local IPv4 address configured.
|
req.ai_flags = AI_NUMERICSERV;
|
||||||
// If this is failing for you on a host with only IPv6 connectivity,
|
|
||||||
// please contribute proper IPv6 support for all functions in this file.
|
|
||||||
req.ai_flags = AI_NUMERICSERV | AI_ADDRCONFIG;
|
|
||||||
|
|
||||||
// Resolve host name. Some of the error info is lost in case of error,
|
// Resolve host name. Some of the error info is lost in case of error,
|
||||||
// however, there's no way to report EAI errors via errno.
|
// however, there's no way to report EAI errors via errno.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user