maso
v1.0.2
Published
maso是一款反向代理服务器,可自己搭建受代理端和代理端
Downloads
40
Readme
Maso
一款反向代理服务器,可自己搭建受代理端和代理端!
安装
- 全局安装
$ yarn global add maso
- 或者
$ npm install -g maso
- 在项目中安装
$ yarn add maso
- 或者
$ npm install --save maso
使用
代理端(服务器)
masoserver -p <客户访问端口号(默认3000)> -ap <受代理端访问端口号(默认3001)> -t <客户访问超时时间ms(默认10000)> -k <代理客户端密钥(未指定则自动生成)>
受代理端(客户端)
maso --host <代理服务器地址> --port <代理服务器端口(默认3000)> -lc <需要代理的地址> -lp <需要代理的端口(默认3000)> -k <代理服务器生成的密钥> -t <访问超时时间ms(默认10000)> -i <向代理服务器获取请求的间隔ms(默认500)>