mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-04 13:05:41 +08:00
acutally allow specifying interfaces as source address
This commit is contained in:
parent
9b1432256d
commit
a4baa36ba4
@ -445,7 +445,7 @@ int zmq::tcp_address_t::resolve (const char *name_, bool local_, bool ipv6_, boo
|
|||||||
|
|
||||||
// Resolve the IP address.
|
// Resolve the IP address.
|
||||||
int rc;
|
int rc;
|
||||||
if (local_)
|
if (local_ || is_src_)
|
||||||
rc = resolve_interface (addr_str.c_str (), ipv6_, is_src_);
|
rc = resolve_interface (addr_str.c_str (), ipv6_, is_src_);
|
||||||
else
|
else
|
||||||
rc = resolve_hostname (addr_str.c_str (), ipv6_, is_src_);
|
rc = resolve_hostname (addr_str.c_str (), ipv6_, is_src_);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user