feat: publish sanitized custom.97 source

This commit is contained in:
cneicy committed 2026-10-27 20:43:39 +08:00
1 parent 8e6ed0317b
commit 86c0276156
1022 files changed
+69903 -19207

No files matched your search

+5 -2
View File
@@ -116,7 +116,7 @@ func newRelayHTTPTransport() *http.Transport {
}
transport.ForceAttemptHTTP2 = true
if common.TLSInsecureSkipVerify {
transport.TLSClientConfig = common.InsecureTLSConfig
transport.TLSClientConfig = common.InsecureTLSConfig.Clone()
}
return transport
}
@@ -176,7 +176,7 @@ func warnLegacyProxyURLOnce(config *proxyURLConfig) {
}
logger.LogWarn(
context.Background(),
fmt.Sprintf(
common.LogText(
"legacy proxy URL suffix ignored at runtime: scheme=%s host=%s; update the channel proxy setting",
config.parsedURL.Scheme,
config.parsedURL.Host,
@@ -333,6 +333,9 @@ func newTransportFactory(proxyURL *url.URL, tlsConfig *tls.Config) (func() *http
}
func newHTTPClientFromPolicy(policy HTTPTransportPolicy, proxyURL *url.URL, tlsConfig *tls.Config) (*http.Client, error) {
if policy.TLSInsecureSkipVerify {
tlsConfig = common.InsecureTLSConfig
}
factory, err := newTransportFactory(proxyURL, tlsConfig)
if err != nil {
return nil, err