Socket
Socket
Sign inDemoInstall

http-proxy-to-socks

Package Overview
Dependencies
12
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

CHANGELOG.md

3

package.json
{
"name": "http-proxy-to-socks",
"version": "1.0.1",
"version": "1.0.2",
"description": "hpts(http-proxy-to-socks) is a nodejs client to convert socks proxy into http proxy",
"main": "lib/server.js",
"repository": {

@@ -6,0 +7,0 @@ "type" : "git",

@@ -5,12 +5,10 @@ # http-proxy-to-socks

hpts(http-proxy-to-socks)是node上,将socks proxy转换成http proxy的工具。
[简介](https://github.com/oyyd/http-proxy-to-socks/blob/master/READMECN.md)
npm,atom/apm,docker images以及iOS的代理设置等我们常用的工具在发送请求时往往支持http proxy代理来加快网络请求或解决网络问题,但是常见的一些代理工具(如:ss)支持的是socks协议。而socks协议本身是支持tcp请求代理的,所以我们可以将对http(s) proxy发送的请求转换成对socks发送的请求。并且这样开启的http proxy仍然能够利用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).
- [polipo](https://github.com/jech/polipo)
## Setup
## 安装
```

@@ -20,5 +18,5 @@ npm install -g http-proxy-to-socks

需要node版本为`4`及以上。
Make sure your nodejs version is greater than `4`.
## 使用
## Usage

@@ -29,5 +27,5 @@ ```

该命令会监听本地的`1080`端口,请确保本地socks服务开启在相应的端口上。开启的http proxy会监听`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:

@@ -45,3 +43,3 @@ ```

`-c`可以指定配置文件,请将配置文件以`json`形式保存,如:
You can specify a `json` config file with `-c`:

@@ -57,3 +55,3 @@ ```json

新增特性和修改特性时,请添加相应的测试例子。提交代码前请在本地确保测试通过:
Please add more tests for corresponding features when you send a PR:

@@ -60,0 +58,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc