diff options
| author | warjiang <[email protected]> | 2025-07-18 02:57:37 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-17 18:57:37 +0000 |
| commit | 606a7702de6659b9a46bcb9c2cbca84a1a33945d (patch) | |
| tree | fe3ce39ac984876ac249e48aa9f697237a924a9f /packages/core/src/code_assist/oauth2.ts | |
| parent | 4ca471bac63cf5f779240ca75d8efa8f9210b554 (diff) | |
feat(cli): add explicit proxy option in cli (#2526)
Co-authored-by: Dcatfly <[email protected]>
Diffstat (limited to 'packages/core/src/code_assist/oauth2.ts')
| -rw-r--r-- | packages/core/src/code_assist/oauth2.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/core/src/code_assist/oauth2.ts b/packages/core/src/code_assist/oauth2.ts index 48449b5e..3c3f7055 100644 --- a/packages/core/src/code_assist/oauth2.ts +++ b/packages/core/src/code_assist/oauth2.ts @@ -73,6 +73,9 @@ export async function getOauthClient( const client = new OAuth2Client({ clientId: OAUTH_CLIENT_ID, clientSecret: OAUTH_CLIENT_SECRET, + transporterOptions: { + proxy: config.getProxy(), + }, }); client.on('tokens', async (tokens: Credentials) => { |
