feat: sync httpdns sdk/platform updates without large binaries

This commit is contained in:
robin
2026-03-04 17:59:14 +08:00
parent 853897a6f8
commit 532891fad0
700 changed files with 6096 additions and 2712 deletions

View File

@@ -0,0 +1,42 @@
//
// HttpdnsResult.h
// TrustHttpDNS
//
// Created by xuyecan on 2024/5/15.
// Copyright © 2024 trustapp.com. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface HttpdnsResult : NSObject
@property (nonatomic, copy) NSString *host;
@property (nonatomic, copy) NSArray<NSString *> *ips;
@property (nonatomic, copy) NSArray<NSString *> *ipv6s;
// 最后一次ipv4地址更新时间戳Unix时间单位秒
@property (nonatomic, assign) NSTimeInterval lastUpdatedTimeInterval;
// 最后一次ipv6地址更新时间戳Unix时间单位秒
@property (nonatomic, assign) NSTimeInterval v6LastUpdatedTimeInterval;
// 对应ipv4的ttl单位秒
@property (nonatomic, assign) NSTimeInterval ttl;
// 对应ipv6的ttl单位秒
@property (nonatomic, assign) NSTimeInterval v6ttl;
- (BOOL)hasIpv4Address;
- (BOOL)hasIpv6Address;
- (nullable NSString *)firstIpv4Address;
- (nullable NSString *)firstIpv6Address;
@end
NS_ASSUME_NONNULL_END