mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-15 08:16:50 +00:00
fix: align proxy routing across fetch and downloader
This commit is contained in:
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', () => {
|
||||
|
||||
Reference in new issue
Block a user