feat: add outbound proxy support (socks5/http) for restricted networks

This commit is contained in:
Quorinex
2026-05-11 21:40:45 +08:00
parent 221348b975
commit 404e2425fa
9 changed files with 205 additions and 42 deletions

View File

@@ -40,7 +40,7 @@ func refreshOIDCToken(refreshToken, clientID, clientSecret, region string) (stri
req, _ := http.NewRequest("POST", url, bytes.NewReader(body))
req.Header.Set("Content-Type", "application/json")
resp, err := httpClient.Do(req)
resp, err := httpClient().Do(req)
if err != nil {
return "", "", 0, err
}
@@ -77,7 +77,7 @@ func refreshSocialToken(refreshToken string) (string, string, int64, error) {
req, _ := http.NewRequest("POST", url, bytes.NewReader(body))
req.Header.Set("Content-Type", "application/json")
resp, err := httpClient.Do(req)
resp, err := httpClient().Do(req)
if err != nil {
return "", "", 0, err
}