mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-26 18:19:53 +03:00
Merge PR #1410: Mayaqua/DNS.c: Fix DNS resolution in dual stack environment
This commit is contained in:
commit
513ad6e792
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user