Skip to content

PANCHO7532/hproxy2socks-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hproxy2socks-js

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.

Usage

  1. Download Node.JS from here: https://nodejs.org/en/download and ensure it's on PATH
  2. Clone this repository
  3. 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

Quirks

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)

About

HTTP(s) Proxy that forwards requests to an SocksV5 server.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published