From 110fd4aff3165ec2b54eb297a0f0528c0976a080 Mon Sep 17 00:00:00 2001 From: "rui.zheng" Date: Thu, 15 Dec 2016 14:06:10 +0800 Subject: [PATCH] update README.md --- README.md | 33 +++++++++++++++++++++++++++++++++ cmd/gost/gost.json | 10 ++++++++++ 2 files changed, 43 insertions(+) create mode 100644 cmd/gost/gost.json diff --git a/README.md b/README.md index fa2fc26..8380f9a 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,26 @@ scheme://[bind_address]:port/[host]:hostport > host:hostport - 目标访问地址 +#### 配置文件 + +> -C : 指定配置文件路径 + +配置文件为标准json格式: +```json +{ + "ServeNodes": [ + ":8080", + "ss://chacha20:12345678@:8338" + ], + "ChainNodes": [ + "http://192.168.1.1:8080", + "https://10.0.2.1:443" + ] +} +``` + +ServeNodes等同于-L参数,ChainNodes等同于-F参数 + #### 开启日志 > -logtostderr : 输出到控制台 @@ -93,6 +113,19 @@ gost -L=:8080 gost -L=admin:123456@localhost:8080 ``` +* 多组认证信息 +```bash +gost -L=localhost:8080?secrets=secrets.txt +``` + +通过secrets参数可以为HTTP/SOCKS5代理设置多组认证信息,格式为: +```plain +# username password + +test001 123456 +test002 12345678 +``` + * 多端口监听 ```bash gost -L=http2://:443 -L=socks://:1080 -L=ss://aes-128-cfb:123456@:8338 diff --git a/cmd/gost/gost.json b/cmd/gost/gost.json new file mode 100644 index 0000000..8602a51 --- /dev/null +++ b/cmd/gost/gost.json @@ -0,0 +1,10 @@ +{ + "ServeNodes": [ + ":8080", + "ss://chacha20:12345678@:8338" + ], + "ChainNodes": [ + "http://192.168.1.1:8080", + "https://10.0.2.1:443" + ] +} \ No newline at end of file