Skip to content

Commit d30dba2

Browse files
Fix DNS multiple query hints to perform both IP4 and IP6 tests
1 parent dc63202 commit d30dba2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

TESTS/netsocket/dns/asynchronous_dns_multi_ip.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void do_getaddrinfo_async(const char hosts[][DNS_TEST_HOST_LEN], unsigned int op
5858
// Create callback semaphore and data
5959
rtos::Semaphore semaphore;
6060
dns_application_data_multi_ip *data = new dns_application_data_multi_ip[op_count];
61-
SocketAddress hints{{NSAPI_IPv4}, 80};
61+
SocketAddress hints{{NSAPI_UNSPEC}, 80};
6262

6363
unsigned int count = 0;
6464
for (unsigned int i = 0; i < op_count; i++) {

TESTS/netsocket/dns/synchronous_dns_multi_ip.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void do_getaddrinfo(const char hosts[][DNS_TEST_HOST_LEN], unsigned int op_count
4242
(*exp_dns_failure) = 0;
4343
(*exp_timeout) = 0;
4444

45-
SocketAddress hints{{NSAPI_IPv4}, 80};
45+
SocketAddress hints{{NSAPI_UNSPEC}, 80};
4646
for (unsigned int i = 0; i < op_count; i++) {
4747
SocketAddress *result;
4848
nsapi_error_t err = NetworkInterface::get_default_instance()->get_default_instance()->getaddrinfo(hosts[i], &hints, &result);

0 commit comments

Comments
 (0)