From e7305b78dd012114bea23b02e8cea037b4fdc0d0 Mon Sep 17 00:00:00 2001 From: q158073378252010 Date: Wed, 18 Apr 2018 15:33:01 +0800 Subject: [PATCH 1/3] Update config_server.json --- websocket+Nginx+TLS/config_server.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/websocket+Nginx+TLS/config_server.json b/websocket+Nginx+TLS/config_server.json index 7d1ebc1..3c194b1 100755 --- a/websocket+Nginx+TLS/config_server.json +++ b/websocket+Nginx+TLS/config_server.json @@ -5,6 +5,16 @@ //可能取值 "debug" "info" "warning" "error" 其中"debug"记录的数据最多,"error"记录的最少 "none"表示不记录任何内容 默认值为"warning" "loglevel": "debug" }, + "policy": { + "levels": { + "0": { + "uplinkOnly": 0, + "downlinkOnly": 0, + "connIdle": 150, + "handshake": 4 + } + } + }, "inbound": { //默认值为"0.0.0.0" "listen": "127.0.0.1", From cc0ab32f8c20023c8b9548fdb6348a04baee7b29 Mon Sep 17 00:00:00 2001 From: q158073378252010 Date: Wed, 18 Apr 2018 15:51:01 +0800 Subject: [PATCH 2/3] Update config_client.json --- websocket+Nginx+TLS/config_client.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/websocket+Nginx+TLS/config_client.json b/websocket+Nginx+TLS/config_client.json index aad0a55..073e55b 100755 --- a/websocket+Nginx+TLS/config_client.json +++ b/websocket+Nginx+TLS/config_client.json @@ -29,6 +29,8 @@ "users": [ { "id": "97c0ec9c-dc4e-11e7-9296-cec278b6b50a", + //"level"字段与"policy"字段中的"levels"字段中的对应,默认值:0,注:需要core≥3.1 + "level": 0, "alterId": 0, "security": "aes-128-cfb" } @@ -73,6 +75,17 @@ "timeout": 300 } }, + // 注"policy"字段需要core≥3.1 + "policy": { + "levels": { + "0": { + "uplinkOnly": 0, + "downlinkOnly": 0, + "connIdle": 150, + "handshake": 4 + } + } + }, "routing": { "settings": { "rules": [ @@ -129,4 +142,4 @@ }, "strategy": "rules" } -} \ No newline at end of file +} From 3034efd24cb396fd67008d155124973a4ff13ca0 Mon Sep 17 00:00:00 2001 From: q158073378252010 Date: Wed, 18 Apr 2018 15:55:36 +0800 Subject: [PATCH 3/3] Update config_server.json --- websocket+Nginx+TLS/config_server.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/websocket+Nginx+TLS/config_server.json b/websocket+Nginx+TLS/config_server.json index 3c194b1..2f8043f 100755 --- a/websocket+Nginx+TLS/config_server.json +++ b/websocket+Nginx+TLS/config_server.json @@ -4,7 +4,8 @@ "error": "/var/log/v2ray/error.log", //可能取值 "debug" "info" "warning" "error" 其中"debug"记录的数据最多,"error"记录的最少 "none"表示不记录任何内容 默认值为"warning" "loglevel": "debug" - }, + }, + //注"policy"字段需要core≥3.1 "policy": { "levels": { "0": { @@ -23,7 +24,8 @@ "settings": { "clients": [ { - "id": "7f43b638-dc47-11e7-9296-cec278b6b50a", + "id": "7f43b638-dc47-11e7-9296-cec278b6b50a", + //"level"字段与"policy"字段中的"levels"字段中的对应,默认值:0,注:需要core≥3.1 "level": 0, "alterId": 64 }