mirror of https://github.com/ARMmbed/mbed-os.git
Fix DNS multiple query hints to perform both IP4 and IP6 tests
parent
dc6320239b
commit
d30dba29ec
|
@ -58,7 +58,7 @@ void do_getaddrinfo_async(const char hosts[][DNS_TEST_HOST_LEN], unsigned int op
|
|||
// Create callback semaphore and data
|
||||
rtos::Semaphore semaphore;
|
||||
dns_application_data_multi_ip *data = new dns_application_data_multi_ip[op_count];
|
||||
SocketAddress hints{{NSAPI_IPv4}, 80};
|
||||
SocketAddress hints{{NSAPI_UNSPEC}, 80};
|
||||
|
||||
unsigned int count = 0;
|
||||
for (unsigned int i = 0; i < op_count; i++) {
|
||||
|
|
|
@ -42,7 +42,7 @@ void do_getaddrinfo(const char hosts[][DNS_TEST_HOST_LEN], unsigned int op_count
|
|||
(*exp_dns_failure) = 0;
|
||||
(*exp_timeout) = 0;
|
||||
|
||||
SocketAddress hints{{NSAPI_IPv4}, 80};
|
||||
SocketAddress hints{{NSAPI_UNSPEC}, 80};
|
||||
for (unsigned int i = 0; i < op_count; i++) {
|
||||
SocketAddress *result;
|
||||
nsapi_error_t err = NetworkInterface::get_default_instance()->get_default_instance()->getaddrinfo(hosts[i], &hints, &result);
|
||||
|
|
Loading…
Reference in New Issue