1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-09-18 01:33:00 +03:00

Mayaqua/DNS.c: Fix DNS resolution in dual stack environment

This commit is contained in:
domosekai 2021-07-05 11:10:03 +00:00
parent 4eae5820f6
commit 883d4d4cd7

View File

@ -425,7 +425,7 @@ void DnsResolver(THREAD *t, void *param)
resolver->IPv6.ipv6_scope_id = in->sin6_scope_id;
ipv6_ok = true;
}
else if (ipv4_ok == false)
else if (IsIP4(&ip) && ipv4_ok == false)
{
Copy(&resolver->IPv4, &ip, sizeof(resolver->IPv4));
ipv4_ok = true;