Merge branch 'master' of git@github.com:snail007/goproxy.git

This commit is contained in:
arraykeys@gmail.com
2017-09-19 17:16:37 +08:00

View File

@ -1,5 +1,6 @@
# Proxy <img src="https://github.com/snail007/goproxy/blob/master/docs/images/logo.jpg?raw=true" width="200"/>
Proxy是golang实现的高性能http,https,websocket,tcp代理服务器. Proxy是golang实现的高性能http,https,websocket,tcp代理服务器.
<hr/>
[![stable](https://img.shields.io/badge/stable-stable-green.svg)](https://github.com/snail007/goproxy/) [![license](https://img.shields.io/github/license/snail007/goproxy.svg?style=plastic)]() [![download_count](https://img.shields.io/github/downloads/snail007/goproxy/total.svg?style=plastic)](https://github.com/snail007/goproxy/releases) [![download](https://img.shields.io/github/release/snail007/goproxy.svg?style=plastic)](https://github.com/snail007/goproxy/releases) [![stable](https://img.shields.io/badge/stable-stable-green.svg)](https://github.com/snail007/goproxy/) [![license](https://img.shields.io/github/license/snail007/goproxy.svg?style=plastic)]() [![download_count](https://img.shields.io/github/downloads/snail007/goproxy/total.svg?style=plastic)](https://github.com/snail007/goproxy/releases) [![download](https://img.shields.io/github/release/snail007/goproxy.svg?style=plastic)](https://github.com/snail007/goproxy/releases)
@ -8,7 +9,7 @@ Proxy是golang实现的高性能http,https,websocket,tcp代理服务器.
**2.作为二级代理,使用本地端口8090,假设上级http代理是`22.22.22.22:8080`** **2.作为二级代理,使用本地端口8090,假设上级http代理是`22.22.22.22:8080`**
`./proxy -P "22.22.22.22:8080" -p 8090` `./proxy -P "22.22.22.22:8080" -p 8090`
**3.生成加密通讯需要的证书和密钥** **3.生成加密通讯需要的证书和密钥**
在linux上并安装了openssl命令可以直接通过下面的命令生成证书和key文件. 在linux上并安装了openssl命令可以直接通过下面的命令生成证书和key文件.
`./proxy keygen` `./proxy keygen`
会在当前目录下面生成一个证书文件proxy.crt和key文件proxy.key。 会在当前目录下面生成一个证书文件proxy.crt和key文件proxy.key。
**4.一级和二级代理加密通讯.** **4.一级和二级代理加密通讯.**