Skip to content

Commit

Permalink
Add statsUserOnline Usage
Browse files Browse the repository at this point in the history
---------

Co-authored-by: 风扇滑翔翼 <[email protected]>
  • Loading branch information
hossinasaadi and Fangliding authored Nov 3, 2024
1 parent cd50a77 commit ee36300
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/config/policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"downlinkOnly": 5,
"statsUserUplink": false,
"statsUserDownlink": false,
"statsUserOnline": false,
"bufferSize": 4
}
},
Expand Down Expand Up @@ -84,6 +85,9 @@ Xray 系统级别的策略
当值为 `true` 时,开启当前等级的所有用户的下行流量统计。

> `statsUserOnline`: true | false
当值为 `true` 时,开启当前等级的所有用户的在线数量统计。(在线标准:20秒内有过连接活动)

> `bufferSize`: number
每个连接的内部缓存大小。单位为 kB。当值为 `0` 时,内部缓存被禁用。
Expand Down
5 changes: 5 additions & 0 deletions docs/en/config/policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
},
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit ee36300

Please sign in to comment.