Problem: regression introduced by 68d520e, leading to tcp name resolution no longer working

Solution: restore "local" flag values in call to resolve

Fixes #3394
This commit is contained in:
Simon Giesecke
2019-02-07 11:00:10 +01:00
parent 5ecf8f93e2
commit 84dc40dd90
5 changed files with 7 additions and 5 deletions

View File

@@ -174,7 +174,7 @@ int zmq::tcp_connecter_t::open ()
_addr->resolved.tcp_addr = new (std::nothrow) tcp_address_t ();
alloc_assert (_addr->resolved.tcp_addr);
_s = tcp_open_socket (_addr->address.c_str (), options, true,
_s = tcp_open_socket (_addr->address.c_str (), options, false, true,
_addr->resolved.tcp_addr);
if (_s == retired_fd) {
LIBZMQ_DELETE (_addr->resolved.tcp_addr);