[GH-ISSUE #1084] socks5 support for proxying requests #2114

Open
opened 2026-04-11 06:33:01 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @catdevnull on GitHub (Jan 30, 2025).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/1084

describe the feature you'd like to see

hi! cobalt currently supports http/s proxies through undici's ProxyAgent. unfortunately, undici's ProxyAgent doesn't support socks4/5 proxies, which are useful as sometimes http/s proxies aren't available.

is there interest in implementing socks4/5 proxies, like with fetch-socks? it should be fairly straight forward (check if API_EXTERNAL_PROXY is a socks4/5 proxy, if yes, create the dispatcher using fetch-socks)

thanks!

additional context

No response

Originally created by @catdevnull on GitHub (Jan 30, 2025). Original GitHub issue: https://github.com/imputnet/cobalt/issues/1084 ### describe the feature you'd like to see hi! cobalt currently supports http/s proxies through undici's ProxyAgent. unfortunately, undici's ProxyAgent [doesn't support](https://github.com/nodejs/undici/issues/2224) socks4/5 proxies, which are useful as sometimes http/s proxies aren't available. is there interest in implementing socks4/5 proxies, like with [fetch-socks](https://github.com/Kaciras/fetch-socks)? it should be fairly straight forward (check if `API_EXTERNAL_PROXY` is a socks4/5 proxy, if yes, create the dispatcher using fetch-socks) thanks! ### additional context _No response_
GiteaMirror added the feature request label 2026-04-11 06:33:02 -05:00
Author
Owner

@catdevnull commented on GitHub (Jan 31, 2025):

i don't actually need this anymore but maybe still would be cool

<!-- gh-comment-id:2626194011 --> @catdevnull commented on GitHub (Jan 31, 2025): i don't actually need this anymore but maybe still would be cool
Author
Owner

@hextor1 commented on GitHub (Feb 13, 2025):

Can anyone tell me how to use multiple proxies for each download.?

<!-- gh-comment-id:2657743594 --> @hextor1 commented on GitHub (Feb 13, 2025): Can anyone tell me how to use multiple proxies for each download.?
Author
Owner

@catdevnull commented on GitHub (Feb 14, 2025):

@hextor1 use a hosted rotating proxy (i know webshare.io has this, and probably others) or modify cobalt to allow rotating proxies by itself.

<!-- gh-comment-id:2658185032 --> @catdevnull commented on GitHub (Feb 14, 2025): @hextor1 use a hosted rotating proxy (i know webshare.io has this, and probably others) or modify cobalt to allow rotating proxies by itself.
Author
Owner

@hextor1 commented on GitHub (Feb 14, 2025):

rotating

Lets suppose i dont want to use rotating proxies because this one is very costly for me, I have daily 3 million request on my website. can you modify code for me I want to use assign 1 proxies on each download . when user send the request its assign 1 proxies then so on. i will pay you if you help me sir. @catdevnull

<!-- gh-comment-id:2658349625 --> @hextor1 commented on GitHub (Feb 14, 2025): > rotating Lets suppose i dont want to use rotating proxies because this one is very costly for me, I have daily 3 million request on my website. can you modify code for me I want to use assign 1 proxies on each download . when user send the request its assign 1 proxies then so on. i will pay you if you help me sir. @catdevnull
Sign in to join this conversation.