Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

http-to-socks-proxy

asluchevskiy42MIT0.1.1

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

socks, proxy, client, tor, socks 5, http, https, server

readme

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