oyyd/http-proxy-to-socks
소개
hpts(http-proxy-to-socks)는 SOCKS 프록시를 HTTP 프록시로 변환하는 Node.js 클라이언트입니다.
시스템 및 인프라측정된 스타 증가
- in 24h
- +1
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalhttp-proxy-to-socks
hpts(http-proxy-to-socks) is a nodejs tool to convert SOCKS proxy into http proxy.
Many clients support setting up http proxy to speed up network requests and for sometimes only SOCKS proxy is available to you. SOCKS proxy supports TCP so that it's possible to convert those requests from http proxy into SOCKS protocol. In this way, you can still keep the goodness provided by your SOCKS proxy(e.g. encryption).
Setup
npm install -g http-proxy-to-socks
Make sure your nodejs version is greater than 4.
Usage
hpts -s 127.0.0.1:1080 -p 8080
This will start a process listening on 8080 as a http proxy. It will convert http requests into socks requests and send them to port 1080. Please make sure your socks service is available at the corresponding port.
Other options:
Options:
-V, --version output the version number
-s, --socks [socks] specify your socks proxy host, default: 127.0.0.1:1080
-p, --port [port] specify the listening port of http proxy server, default: 8080
-l, --host [host] specify the listening host of http proxy server, default: 127.0.0.1
-c, --config [config] read configs from file in json format
--level [level] log level, vals: info, error
-h, --help output usage information
You can specify a json config file with -c:
{
"socks": "127.0.0.1:1080",
"port": 8080
}
CONTRIBUTE
Please add more tests for corresponding features when you send a PR:
npm run test
License
MIT
관련 프로젝트 살펴보기
불러오는 중…