summaryrefslogtreecommitdiff
path: root/src/vtcp_connecter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vtcp_connecter.cpp')
-rw-r--r--src/vtcp_connecter.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vtcp_connecter.cpp b/src/vtcp_connecter.cpp
index 5c72044..f281b23 100644
--- a/src/vtcp_connecter.cpp
+++ b/src/vtcp_connecter.cpp
@@ -92,7 +92,8 @@ int zmq::vtcp_connecter_t::set_address (const char *addr_)
addr_str += ":9220";
std::string subport_str (delimiter + 1);
subport = (vtcp_subport_t) atoi (subport_str.c_str ());
- int rc = resolve_ip_hostname (&addr, &addr_len, addr_str.c_str ());
+ int rc = resolve_ip_hostname (&addr, &addr_len, addr_str.c_str (),
+ true);
if (rc != 0)
return -1;
}
@@ -100,7 +101,8 @@ int zmq::vtcp_connecter_t::set_address (const char *addr_)
std::string addr_str (addr_, delimiter - addr_);
std::string subport_str (delimiter + 1);
subport = (vtcp_subport_t) atoi (subport_str.c_str ());
- int rc = resolve_ip_hostname (&addr, &addr_len, addr_str.c_str ());
+ int rc = resolve_ip_hostname (&addr, &addr_len, addr_str.c_str (),
+ true);
if (rc != 0)
return -1;
}