socks5 support for proxying requests #701

Open
opened 2025-11-09 09:56:17 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @catdevnull on GitHub (Jan 30, 2025).

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). ### 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 2025-11-09 09:56:17 -06:00
Author
Owner

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

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

@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.?

@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.

@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

@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.