allow specify binding address on radio with udp

This commit is contained in:
somdoron
2016-04-29 10:48:46 +03:00
parent 9798f74d17
commit 34d5028ea8
4 changed files with 20 additions and 9 deletions

View File

@@ -882,7 +882,7 @@ int zmq::socket_base_t::connect (const char *addr_)
if (protocol == "udp") {
paddr->resolved.udp_addr = new (std::nothrow) udp_address_t ();
alloc_assert (paddr->resolved.udp_addr);
rc = paddr->resolved.udp_addr->resolve (address.c_str());
rc = paddr->resolved.udp_addr->resolve (address.c_str(), options.type == ZMQ_DISH);
if (rc != 0) {
LIBZMQ_DELETE(paddr);
EXIT_MUTEX ();