diff options
| author | xperia64 <xperiancedapps@gmail.com> | 2020-04-06 15:45:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-06 15:45:43 -0400 |
| commit | b4e49dc65697c99108ac61a7853a5f88732f41cc (patch) | |
| tree | 86aa0aa744a25291a3111cb922ba498a4323410d /Source/Core | |
| parent | 4ff855921e221f944d5ce22074e86096474d4ea6 (diff) | |
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.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/IOS/Network/IP/Top.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/Core/Core/IOS/Network/IP/Top.cpp b/Source/Core/Core/IOS/Network/IP/Top.cpp index 4aff46e48d..53adfce757 100644 --- a/Source/Core/Core/IOS/Network/IP/Top.cpp +++ b/Source/Core/Core/IOS/Network/IP/Top.cpp @@ -860,10 +860,13 @@ IPCCommandResult NetIPTop::HandleGetInterfaceOptRequest(const IOCtlVRequest& req } } #elif defined(__linux__) && !defined(__ANDROID__) - if (res_init() == 0) - address = ntohl(_res.nsaddr_list[0].sin_addr.s_addr); - else - WARN_LOG(IOS_NET, "Call to res_init failed"); + if (!Core::WantsDeterminism()) + { + if (res_init() == 0) + address = ntohl(_res.nsaddr_list[0].sin_addr.s_addr); + else + WARN_LOG(IOS_NET, "Call to res_init failed"); + } #endif if (address == 0) address = default_main_dns_resolver; |
