带阿里标识的版本

This commit is contained in:
robin
2026-02-28 18:55:33 +08:00
parent 150799f41d
commit 5d0b7c7e91
477 changed files with 10813 additions and 4044 deletions

View File

@@ -1,15 +1,15 @@
//
// HttpdnsNWHTTPClientTestBase.m
// AlicloudHttpDNSTests
// TrustHttpDNSTests
//
// @author Created by Claude Code on 2025-11-01
// Copyright © 2025 alibaba-inc.com. All rights reserved.
// Copyright © 2025 trustapp.com. All rights reserved.
//
// -
//
// mock server
// cd AlicloudHttpDNSTests/Network && python3 mock_server.py
//
// cd TrustHttpDNSTests/Network && python3 mock_server.py
// <EFBFBD><EFBFBD>?
// - HTTP: 11080
// - HTTPS: 11443, 11444, 11445, 11446
//
@@ -21,18 +21,18 @@
- (void)setUp {
[super setUp];
// TLS mock server
//
// <EFBFBD><EFBFBD>?TLS <EFBFBD><EFBFBD>?mock server <EFBFBD><EFBFBD>?
// <EFBFBD><EFBFBD>?
// 1.
// 2. loopback (127.0.0.1)
// 3.
// 2. <EFBFBD><EFBFBD>?loopback (127.0.0.1)
// 3. <EFBFBD><EFBFBD>?
setenv("HTTPDNS_SKIP_TLS_VERIFY", "1", 1);
self.client = [[HttpdnsNWHTTPClient alloc] init];
}
- (void)tearDown {
//
// <EFBFBD><EFBFBD>?
unsetenv("HTTPDNS_SKIP_TLS_VERIFY");
self.client = nil;