Merge pull request #8726 from xperia64/dns_improvements
Respect Core::WantsDeterminism for DNS servers on Linux
This commit is contained in:
commit
71f409dac4
|
@ -860,10 +860,13 @@ IPCCommandResult NetIPTop::HandleGetInterfaceOptRequest(const IOCtlVRequest& req
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#elif defined(__linux__) && !defined(__ANDROID__)
|
#elif defined(__linux__) && !defined(__ANDROID__)
|
||||||
if (res_init() == 0)
|
if (!Core::WantsDeterminism())
|
||||||
address = ntohl(_res.nsaddr_list[0].sin_addr.s_addr);
|
{
|
||||||
else
|
if (res_init() == 0)
|
||||||
WARN_LOG(IOS_NET, "Call to res_init failed");
|
address = ntohl(_res.nsaddr_list[0].sin_addr.s_addr);
|
||||||
|
else
|
||||||
|
WARN_LOG(IOS_NET, "Call to res_init failed");
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
if (address == 0)
|
if (address == 0)
|
||||||
address = default_main_dns_resolver;
|
address = default_main_dns_resolver;
|
||||||
|
|
Loading…
Reference in New Issue