Respect Core::WantsDeterminism for DNS on Linux
Previously Core::WantsDeterminism was only checked for setting the DNS on WIN32. Same check should apply to Linux too.
This commit is contained in:
parent
4ff855921e
commit
b4e49dc656
|
@ -860,10 +860,13 @@ IPCCommandResult NetIPTop::HandleGetInterfaceOptRequest(const IOCtlVRequest& req
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#elif defined(__linux__) && !defined(__ANDROID__)
|
#elif defined(__linux__) && !defined(__ANDROID__)
|
||||||
|
if (!Core::WantsDeterminism())
|
||||||
|
{
|
||||||
if (res_init() == 0)
|
if (res_init() == 0)
|
||||||
address = ntohl(_res.nsaddr_list[0].sin_addr.s_addr);
|
address = ntohl(_res.nsaddr_list[0].sin_addr.s_addr);
|
||||||
else
|
else
|
||||||
WARN_LOG(IOS_NET, "Call to res_init failed");
|
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