feat: support system proxy for remote API

This commit is contained in:
Manx98
2026-03-29 22:40:03 +08:00
committed by lyingbug
parent 2d5782992e
commit 1baabb6c05
2 changed files with 23 additions and 1 deletions
+1
View File
@@ -22,6 +22,7 @@ import (
// Uses SSRFSafeDialContext to prevent DNS rebinding attacks at the connection layer.
var rawHTTPClient = &http.Client{
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
DialContext: secutils.SSRFSafeDialContext,
TLSHandshakeTimeout: 10 * time.Second,
IdleConnTimeout: 90 * time.Second,