Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oyyd/http-proxy-to-socks
hpts(http-proxy-to-socks) is a nodejs client to convert socks proxy into http proxy
https://github.com/oyyd/http-proxy-to-socks
http-proxy shadowsocks socks5
Last synced: 26 days ago
JSON representation
hpts(http-proxy-to-socks) is a nodejs client to convert socks proxy into http proxy
- Host: GitHub
- URL: https://github.com/oyyd/http-proxy-to-socks
- Owner: oyyd
- License: mit
- Created: 2017-02-04T06:13:05.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-02T13:44:35.000Z (over 1 year ago)
- Last Synced: 2024-04-14T07:10:02.763Z (7 months ago)
- Topics: http-proxy, shadowsocks, socks5
- Language: JavaScript
- Size: 477 KB
- Stars: 524
- Watchers: 18
- Forks: 91
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-network-stuff - **185**星 - proxy-to-socks) is a nodejs client to convert socks proxy into http proxy (<a id="d03d494700077f6a65092985c06bf8e8"></a>工具 / <a id="57b8e953d394bbed52df2a6976d98dfa"></a>Socks)
README
# http-proxy-to-socks
[![build](https://api.travis-ci.org/oyyd/http-proxy-to-socks.svg?branch=master)](https://travis-ci.org/oyyd/http-proxy-to-socks)
[简介](https://github.com/oyyd/http-proxy-to-socks/blob/master/READMECN.md)
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`:
```json
{
"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