From 6d4c94e49e8cf1363a07eee1bdc07736a34cca51 Mon Sep 17 00:00:00 2001 From: huangsimin Date: Mon, 17 Dec 2018 10:48:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 readme.md diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..51f0579 --- /dev/null +++ b/readme.md @@ -0,0 +1,40 @@ +说明: +==== +#### + 根据actives.yaml配置, 添加adsl拨号的主机. eg: +```yaml +switch: + 192.168.6.100:8080: + group: ["10.10.10.70", "10.10.10.71"] # 苏州 + city: "3205" + 192.168.6.100:8082: + group: ["10.10.10.74", "10.10.10.75"] # 天津 + city: "12" + 192.168.6.100:8083: + group: ["10.10.10.76", "10.10.10.77"] # 滨州 + city: "3716" +restart: 50 +``` + 192.168.6.100:8080 为代理的ip地址 + group: 内为adsl主机的vpn节点ip + city: 为城市代码 + restart: 为切换时间 +#### +---- +##### +http:/{ipcenter_host}/ippool/switch/actives 可以获取当前可用ip地址的json信息. eg: +```json +{"192.168.6.100:8080":{"city":"3205","group":["10.10.10.70","10.10.10.71"]},"192.168.6.100:8082":{"city":"12","group":["10.10.10.74","10.10.10.75"]},"192.168.6.100:8083":{"city":"3716","group":["10.10.10.76","10.10.10.77"]},"192.168.6.100:8085":{"city":"5328","group":["10.10.10.80","10.10.10.81"]},"192.168.6.100:8087":{"city":"1506","group":["10.10.10.84","10.10.10.85"]},"192.168.6.100:8088":{"city":"4601","group":["10.10.10.86","10.10.10.87"]},"192.168.6.100:8091":{"city":"4602","group":["10.10.10.93","10.10.10.92"]}} +``` +##### + +---- +启动例子: +==== + +``` +git clone http:... +go build +sh start.sh +``` +