Commit bcb6128c authored by Simon Morlat's avatar Simon Morlat

Fix stun server selection based on looking for AI_V4MAPPED flag

parent 3115d817
......@@ -579,6 +579,7 @@ static const struct addrinfo * find_nat64_addrinfo(const struct addrinfo *ai) {
static const struct addrinfo * find_ipv4_addrinfo(const struct addrinfo *ai) {
while (ai != NULL) {
if (ai->ai_family == AF_INET) break;
if (ai->ai_family == AF_INET6 && ai->ai_flags & AI_V4MAPPED) break;
ai = ai->ai_next;
}
return ai;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment