1.0.8 • Published 6 years ago

wall-out v1.0.8

Weekly downloads
2
License
ISC
Repository
-
Last release
6 years ago

WALL-OUT

【出墙】个人翻墙软件,服务端运行于墙外服务器,客户端运行与本地电脑

代理过程中,会先ping目标地址(ping完成之后会缓存,因此,首次请求可能有ping延迟,此后将不会有),如果ping成功,则不进行代理,否则进行代理,这样做的好处是可以忽略国内可访问的域名

安装

全局安装:

npm install -g wall-out

项目中安装

npm install --save wall-out

使用

服务器

wo-srv 服务器配置文件

客户端

wo-cli [客户端配置文件]

API使用

import { createServer, createProxy } from 'wall-out'

//可以这样创建服务器
createServer({
	//配置
})

createProxy({
	//服务器配置
}, {
	//代理配置
})

配置文件

服务器配置文件请自行建立,客户端文件默认为${HOME}/wo.ini

参考demo/client.inidemo/server.ini两个配置文件

使用代理

使用代理需要在操作系统中设置全局代理,如果浏览器支持,可以在浏览器中设置代理。

Linux/Unix命令行中,可以这样设置http(s)代理,设置后,仅当前terminal有效。

export http_proxy=127.0.0.1:5412
export https_proxy=127.0.0.1:5412
1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago