From 1edb25fb79224ce4118299211b5ec658521fb130 Mon Sep 17 00:00:00 2001 From: Hossin Asaadi Date: Sun, 3 Nov 2024 19:24:05 +0400 Subject: [PATCH 1/3] Update policy.md statsUserOnline --- docs/en/config/policy.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/en/config/policy.md b/docs/en/config/policy.md index f2da19c075..a59a3ae0f8 100644 --- a/docs/en/config/policy.md +++ b/docs/en/config/policy.md @@ -17,6 +17,7 @@ Local policy can be used to set different policy settings for different user lev "downlinkOnly": 5, "statsUserUplink": false, "statsUserDownlink": false, + "statsUserOnline": false, "bufferSize": 4 } }, @@ -84,6 +85,10 @@ When set to `true`, enables upstream traffic statistics for all users at the cur When set to `true`, enables downstream traffic statistics for all users at the current level. +> `statsUserOnline`: true | false + +When set to `true`, enables counting online users for all users at the current level by email. + > `bufferSize`: number The internal buffer size of each connection. Unit: kB. When set to `0`, the internal buffer is disabled. From 950e2bec17da4e26242644742713544bcdb03b20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E6=89=87=E6=BB=91=E7=BF=94=E7=BF=BC?= Date: Sun, 3 Nov 2024 23:32:06 +0800 Subject: [PATCH 2/3] Update policy.md --- docs/config/policy.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/config/policy.md b/docs/config/policy.md index 4215fade24..596d9dc8ea 100644 --- a/docs/config/policy.md +++ b/docs/config/policy.md @@ -17,6 +17,7 @@ "downlinkOnly": 5, "statsUserUplink": false, "statsUserDownlink": false, + "statsUserOnline": false, "bufferSize": 4 } }, @@ -84,6 +85,9 @@ Xray 系统级别的策略 当值为 `true` 时,开启当前等级的所有用户的下行流量统计。 +> `statsUserOnline`: true | false +当值为 `true` 时,开启当前等级的所有用户的在线统计。(20秒内有过连接活动) + > `bufferSize`: number 每个连接的内部缓存大小。单位为 kB。当值为 `0` 时,内部缓存被禁用。 From 154e3f87e01c9199dd50158e22fad49223a4db47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E6=89=87=E6=BB=91=E7=BF=94=E7=BF=BC?= Date: Sun, 3 Nov 2024 23:33:40 +0800 Subject: [PATCH 3/3] Update policy.md --- docs/config/policy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/config/policy.md b/docs/config/policy.md index 596d9dc8ea..f3470baca5 100644 --- a/docs/config/policy.md +++ b/docs/config/policy.md @@ -86,7 +86,7 @@ Xray 系统级别的策略 当值为 `true` 时,开启当前等级的所有用户的下行流量统计。 > `statsUserOnline`: true | false -当值为 `true` 时,开启当前等级的所有用户的在线统计。(20秒内有过连接活动) +当值为 `true` 时,开启当前等级的所有用户的在线数量统计。(在线标准:20秒内有过连接活动) > `bufferSize`: number