mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 10:52:56 +01:00
Always allow DNS when resolving TCP and UDP adresses. DNS resolution is done after interface resolution, so it can always be enabled to have a fallback mecanism on hostname resolution.
This commit is contained in:
parent
e0296d9cdd
commit
5657b4586f
@ -75,7 +75,7 @@ int zmq::tcp_address_t::resolve (const char *name_, bool local_, bool ipv6_)
|
||||
ip_resolver_options_t resolver_opts;
|
||||
|
||||
resolver_opts.bindable (local_)
|
||||
.allow_dns (!local_)
|
||||
.allow_dns (true)
|
||||
.allow_nic_name (local_)
|
||||
.ipv6 (ipv6_)
|
||||
.expect_port (true);
|
||||
|
@ -92,7 +92,7 @@ int zmq::udp_address_t::resolve (const char *name_, bool bind_, bool ipv6_)
|
||||
ip_resolver_options_t resolver_opts;
|
||||
|
||||
resolver_opts.bindable (bind_)
|
||||
.allow_dns (!bind_)
|
||||
.allow_dns (true)
|
||||
.allow_nic_name (bind_)
|
||||
.expect_port (true)
|
||||
.ipv6 (ipv6_);
|
||||
|
Loading…
Reference in New Issue
Block a user