fix: align proxy routing across fetch and downloader

This commit is contained in:
Tam Nhu Tran committed 2026-03-16 07:10:39 -04:00
1 parent f50c9625de
commit fd5d16f3f3
5 files changed
+236 -21

No files matched your search

@@ -263,9 +263,9 @@ describe('Binary Downloader Proxy Support', () => {
expect(getProxyAgent('https://example.com')).toBe(false);
});
it('should reject unsupported proxy protocols', () => {
it('should keep supporting socks proxy URLs for downloader traffic', () => {
process.env.https_proxy = 'socks5://proxy:1080';
expect(getProxyAgent('https://example.com')).toBe(false);
expect(getProxyAgent('https://example.com')).not.toBe(false);
});
it('should return false for invalid target URL', () => {