Skip to content

Commit dffa10d

Browse files
authored
Core: Add version
1 parent 1847b13 commit dffa10d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/config/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Xray 的配置文件为 json 格式, 客户端和服务端的配置格式没有
1212

1313
```json
1414
{
15+
"vsersion":{},
1516
"log": {},
1617
"api": {},
1718
"dns": {},
@@ -35,6 +36,19 @@ Xray 的配置文件为 json 格式, 客户端和服务端的配置格式没有
3536

3637
## 基础配置模块
3738

39+
> vsersion
40+
41+
可选,控制该 config 可以运行的版本,当分享 config 时防止在不期望的客户端版本意外运行,运行时客户端将会检查当前版本是否匹配该要求。
42+
43+
```
44+
"vsersion":{
45+
"min": "25.6.4",
46+
"max": "25.10.1"
47+
}
48+
```
49+
50+
`min``max` 均为可选,不设置或留空代表不设限。不需要是实际存在的版本,只要符合 Xray 版本号 x.y.z 的语法即可。
51+
3852
> log:[LogObject](./log.md)
3953
4054
日志配置,控制 Xray 输出日志的方式.

0 commit comments

Comments
 (0)