feat: Implement S2A, Rod, and Chromedp based authentication for external services, and introduce new frontend pages and backend APIs for monitoring, configuration, upload, and team processes.
This commit is contained in:
@@ -9,6 +9,8 @@ import (
|
||||
"net/url"
|
||||
"strings"
|
||||
|
||||
"codex-pool/internal/proxyutil"
|
||||
|
||||
"github.com/andybalholm/brotli"
|
||||
http2 "github.com/bogdanfinn/fhttp"
|
||||
tls_client "github.com/bogdanfinn/tls-client"
|
||||
@@ -44,7 +46,11 @@ func New(proxyStr string) (*TLSClient, error) {
|
||||
}
|
||||
|
||||
if proxyStr != "" {
|
||||
options = append(options, tls_client.WithProxyUrl(proxyStr))
|
||||
normalized, err := proxyutil.Normalize(proxyStr)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
options = append(options, tls_client.WithProxyUrl(normalized))
|
||||
}
|
||||
|
||||
client, err := tls_client.NewHttpClient(tls_client.NewNoopLogger(), options...)
|
||||
|
||||
Reference in New Issue
Block a user