From 883d4d4cd7d62c906f547c6e01ee0e097c41a777 Mon Sep 17 00:00:00 2001 From: domosekai <54519668+domosekai@users.noreply.github.com> Date: Mon, 5 Jul 2021 11:10:03 +0000 Subject: [PATCH] Mayaqua/DNS.c: Fix DNS resolution in dual stack environment --- src/Mayaqua/DNS.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mayaqua/DNS.c b/src/Mayaqua/DNS.c index c2617e87..f3a68410 100644 --- a/src/Mayaqua/DNS.c +++ b/src/Mayaqua/DNS.c @@ -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;