feat: 添加自定义HTTP客户端和WebSocket拨号器,支持TLS配置

This commit is contained in:
Akizon77
2025-10-15 12:25:32 +08:00
parent 8e31514e9c
commit 0dcdb89bb5
5 changed files with 152 additions and 76 deletions

View File

@@ -87,7 +87,6 @@ func tryUploadData(data map[string]interface{}) error {
req.Header.Set("CF-Access-Client-Secret", flags.CFAccessClientSecret)
}
// 使用dnsresolver获取自定义HTTP客户端
client := dnsresolver.GetHTTPClient(30 * time.Second)
resp, err := client.Do(req)