Skip to content

Commit

Permalink
feat:处理双栈异常结果
Browse files Browse the repository at this point in the history
  • Loading branch information
erichuyuehu committed Jul 10, 2023
1 parent 7c17b6b commit bfb9164
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion MSDKDns/Resolver/HttpsDnsResolver.m
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ - (void)startWithDomains:(NSArray *)domains TimeOut:(float)timeOut DnsId:(int)dn
id<MSDKDnsResolverDelegate> delegate = self.delegate;
self.errorCode = MSDKDns_UnResolve;
if (!domainStr || domainStr.length == 0) {
MSDKDNSLOG(@"HttpDns Domain is must needed!");
MSDKDNSLOG(@"HttpDns Domain is must needed!");
self.domainInfo = nil;
self.isFinished = YES;
self.isSucceed = NO;
Expand Down Expand Up @@ -266,6 +266,10 @@ - (NSDictionary *)parseAllIPString:(NSString *)iPstring {
}

}
// 当双栈解析请求中ipv4和ipv6的结果都不符合预期,就返回ni走getDomainError逻辑
if (bothIPDict.count == 0){
return nil;
}
return bothIPDict;
} else {
BOOL use4A = false;
Expand Down

0 comments on commit bfb9164

Please sign in to comment.