http-to-socks-proxy

0.1.1 • Public • Published

http-to-socks-proxy

Implements http proxy server which sends requests through the socks proxy (proxies)

Usage

You can specify proxy or proxyList options. If proxyList is specified, proxy will be selected randomly

var ProxyServer = require('proxy-server');
var options = {
    //proxy: '127.0.0.1:9050',
    proxy: null,
    proxyList: './proxy.list',
    proxyListReloadTimeout: 60 // one minute
};
ProxyServer.createServer(options).listen(8080);

proxy.list must be in the following format:

host:port
host:port:login:password

Known problems

  • does not support Keep Alive for http at all

Package Sidebar

Install

npm i http-to-socks-proxy

Weekly Downloads

4

Version

0.1.1

License

MIT

Last publish

Collaborators

  • asluchevskiy