Skip to content

Commit

Permalink
feat:修改三网探测逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
erichuyuehu committed Aug 17, 2023
1 parent ca529cf commit 51b6874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MSDKDns/CacheManager/MSDKDnsNetworkManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ - (instancetype)init
[[MSDKDnsManager shareInstance] switchToMainServer];

BOOL enableDetectHostServer = [[MSDKDnsParamsManager shareInstance] msdkDnsGetEnableDetectHostServer];
if (!enableDetectHostServer) {
if (enableDetectHostServer) {
MSDKDNSLOG(@"Network did changed, detect HttpDns servers");
// 探测dnsIp
[[MSDKDnsManager shareInstance] detectHttpDnsServers];
Expand Down Expand Up @@ -114,7 +114,7 @@ - (instancetype)init
[self getHostsByKeepAliveDomains];

BOOL enableDetectHostServer = [[MSDKDnsParamsManager shareInstance] msdkDnsGetEnableDetectHostServer];
if (!enableDetectHostServer) {
if (enableDetectHostServer) {
// 探测dnsIp
[[MSDKDnsManager shareInstance] detectHttpDnsServers];
}
Expand Down

0 comments on commit 51b6874

Please sign in to comment.