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:
Guillaume DELACOURT 2023-06-12 10:06:01 +02:00 committed by Luca Boccassi
parent e0296d9cdd
commit 5657b4586f
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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_);