From 51b68749543bdec7f55857ed71373d897c343661 Mon Sep 17 00:00:00 2001 From: erichuyuehu Date: Thu, 17 Aug 2023 14:30:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9=E4=B8=89=E7=BD=91?= =?UTF-8?q?=E6=8E=A2=E6=B5=8B=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MSDKDns/CacheManager/MSDKDnsNetworkManager.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MSDKDns/CacheManager/MSDKDnsNetworkManager.m b/MSDKDns/CacheManager/MSDKDnsNetworkManager.m index 8d2580b..027697f 100644 --- a/MSDKDns/CacheManager/MSDKDnsNetworkManager.m +++ b/MSDKDns/CacheManager/MSDKDnsNetworkManager.m @@ -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]; @@ -114,7 +114,7 @@ - (instancetype)init [self getHostsByKeepAliveDomains]; BOOL enableDetectHostServer = [[MSDKDnsParamsManager shareInstance] msdkDnsGetEnableDetectHostServer]; - if (!enableDetectHostServer) { + if (enableDetectHostServer) { // 探测dnsIp [[MSDKDnsManager shareInstance] detectHttpDnsServers]; }