HTTP(s) proxy that forwards all requests to an SocksV5 server (JavaScript version). Originally intended to use for FFmpeg as it doesn't support SocksV5 proxies yet, but can be used by anything else.
Note
The socksv5 package is bundled within' this repository as it includes modifications that fixes behavior for modern versions of Node.JS
Do not attempt to update or redownload dependencies that are not tagged as development.
- Download Node.JS from here: https://nodejs.org/en/download and ensure it's on PATH
- Clone this repository
- Now you can start the proxy server by executing
node hproxy2socks.js -dhost 127.0.0.1 -dport 1080 -lport 8080
which will forward all proxy requests made to the server running at 8080, to an socks proxy running on your machine at port 1080
You could say that HTTPS is more stable, if you will. HTTP uses the agent functionality of the package socksv5 to forward HTTP requests, this is not ideal if you expect to send and receive (duplex) on non-CONNECT requests. (i.e websockets), if you're intending to use it like that, ensure whatever connection that's made to be proxied using HTTPS (or some transport using CONNECT of your choice)