meta-json-schema 1.18.4-beta4 → 1.18.4-beta5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/CHANGELOG.md +44 -40
  2. package/LICENSE +21 -21
  3. package/README.md +204 -204
  4. package/package.json +50 -41
  5. package/schemas/clash-verge-merge-json-schema.json +1 -1
  6. package/schemas/meta-json-schema.json +1 -1
  7. package/.gitattributes +0 -2
  8. package/.github/workflows/release_on_tag.yml +0 -44
  9. package/.github/workflows/workflow_runs_cleaner.yml +0 -18
  10. package/.vscode/extensions.json +0 -3
  11. package/.vscode/settings.json +0 -30
  12. package/scripts/release.mjs +0 -29
  13. package/scripts/util/bundle.mjs +0 -91
  14. package/scripts/util/env.mjs +0 -9
  15. package/scripts/util/file.mjs +0 -13
  16. package/scripts/watch.mjs +0 -28
  17. package/src/clash-verge-merge-json-schema.json +0 -58
  18. package/src/definitions/compatible.json +0 -6
  19. package/src/definitions/enums.json +0 -58
  20. package/src/definitions/patterns.json +0 -87
  21. package/src/definitions/types.json +0 -70
  22. package/src/meta-json-schema.json +0 -168
  23. package/src/modules/adapter/outbound/base.json +0 -91
  24. package/src/modules/adapter/outbound/direct.json +0 -39
  25. package/src/modules/adapter/outbound/dns.json +0 -39
  26. package/src/modules/adapter/outbound/http.json +0 -101
  27. package/src/modules/adapter/outbound/hysteria.json +0 -182
  28. package/src/modules/adapter/outbound/hysteria2.json +0 -146
  29. package/src/modules/adapter/outbound/reality.json +0 -25
  30. package/src/modules/adapter/outbound/shadowsocks.json +0 -308
  31. package/src/modules/adapter/outbound/shadowsocksr.json +0 -151
  32. package/src/modules/adapter/outbound/singmux.json +0 -95
  33. package/src/modules/adapter/outbound/snell.json +0 -65
  34. package/src/modules/adapter/outbound/socks5.json +0 -88
  35. package/src/modules/adapter/outbound/ssh.json +0 -87
  36. package/src/modules/adapter/outbound/trojan.json +0 -93
  37. package/src/modules/adapter/outbound/tuic.json +0 -213
  38. package/src/modules/adapter/outbound/vless.json +0 -146
  39. package/src/modules/adapter/outbound/vmess.json +0 -251
  40. package/src/modules/adapter/outbound/wireguard.json +0 -150
  41. package/src/modules/adapter/outboundgroup/fallback.json +0 -18
  42. package/src/modules/adapter/outboundgroup/groupbase.json +0 -98
  43. package/src/modules/adapter/outboundgroup/loadbalance.json +0 -29
  44. package/src/modules/adapter/outboundgroup/relay.json +0 -18
  45. package/src/modules/adapter/outboundgroup/urltest.json +0 -25
  46. package/src/modules/adapter/provider/health-check.json +0 -74
  47. package/src/modules/adapter/provider/provider.json +0 -159
  48. package/src/modules/config/authentication.json +0 -9
  49. package/src/modules/config/controller.json +0 -53
  50. package/src/modules/config/dns.json +0 -163
  51. package/src/modules/config/ebpf.json +0 -22
  52. package/src/modules/config/experimental.json +0 -29
  53. package/src/modules/config/general.json +0 -140
  54. package/src/modules/config/geox-url.json +0 -38
  55. package/src/modules/config/hosts.json +0 -9
  56. package/src/modules/config/inbound.json +0 -107
  57. package/src/modules/config/iptables.json +0 -38
  58. package/src/modules/config/listeners.json +0 -90
  59. package/src/modules/config/ntp.json +0 -50
  60. package/src/modules/config/profile.json +0 -24
  61. package/src/modules/config/proxies.json +0 -118
  62. package/src/modules/config/proxy-groups.json +0 -21
  63. package/src/modules/config/proxy-providers.json +0 -11
  64. package/src/modules/config/rules.json +0 -11
  65. package/src/modules/config/sniffer.json +0 -111
  66. package/src/modules/config/sub-rules.json +0 -14
  67. package/src/modules/config/tls.json +0 -28
  68. package/src/modules/config/tunnels.json +0 -49
  69. package/src/modules/listener/config/tuic.json +0 -102
  70. package/src/modules/listener/config/tun.json +0 -205
  71. package/src/modules/listener/inbound/base.json +0 -43
  72. package/src/modules/listener/inbound/http.json +0 -18
  73. package/src/modules/listener/inbound/hysteria2.json +0 -102
  74. package/src/modules/listener/inbound/mixed.json +0 -26
  75. package/src/modules/listener/inbound/mux.json +0 -42
  76. package/src/modules/listener/inbound/redir.json +0 -18
  77. package/src/modules/listener/inbound/shadowsocks.json +0 -41
  78. package/src/modules/listener/inbound/socks.json +0 -26
  79. package/src/modules/listener/inbound/tproxy.json +0 -26
  80. package/src/modules/listener/inbound/tuic.json +0 -84
  81. package/src/modules/listener/inbound/tun.json +0 -207
  82. package/src/modules/listener/inbound/tunnel.json +0 -33
  83. package/src/modules/listener/inbound/vmess.json +0 -72
  84. package/src/modules/listener/sing/sing.json +0 -42
  85. package/src/modules/rules/provider/provider.json +0 -71
  86. package/src/modules/rules/rule.json +0 -165
  87. package/test/clash-meta/example1.yaml +0 -3170
  88. package/test/clash-verge/merge.yaml +0 -212
@@ -1,29 +0,0 @@
1
- {
2
- "type": "object",
3
- "title": "outboundgroup-load-balance",
4
- "definitions": {
5
- "types": { "$ref": "../../../definitions/types.json" },
6
- "patterns": { "$ref": "../../../definitions/patterns.json" },
7
- "enums": { "$ref": "../../../definitions/enums.json" },
8
- "groupbase": { "$ref": "./groupbase.json" }
9
- },
10
- "allOf": [
11
- { "title": "代理组基础配置", "$ref": "#/definitions/groupbase" },
12
- {
13
- "type": "object",
14
- "title": "load-balance配置",
15
- "properties": {
16
- "strategy": {
17
- "enum": ["consistent-hashing", "round-robin", "sticky-sessions"],
18
- "title": "负载均衡策略",
19
- "markdownEnumDescriptions": [
20
- "一致性哈希,把相同顶级域名的请求分配给代理组内的同一个代理节点",
21
- "轮询,按照顺序将请求分发给每个可用的服务器",
22
- "粘性会话,将特定的用户会话绑定到同一台服务器上"
23
- ],
24
- "default": "consistent-hashing"
25
- }
26
- }
27
- }
28
- ]
29
- }
@@ -1,18 +0,0 @@
1
- {
2
- "type": "object",
3
- "title": "outboundgroup-relay",
4
- "definitions": {
5
- "types": { "$ref": "../../../definitions/types.json" },
6
- "patterns": { "$ref": "../../../definitions/patterns.json" },
7
- "enums": { "$ref": "../../../definitions/enums.json" },
8
- "groupbase": { "$ref": "./groupbase.json" }
9
- },
10
- "allOf": [
11
- { "title": "代理组基础配置", "$ref": "#/definitions/groupbase" },
12
- {
13
- "type": "object",
14
- "title": "relay配置",
15
- "properties": {}
16
- }
17
- ]
18
- }
@@ -1,25 +0,0 @@
1
- {
2
- "type": "object",
3
- "title": "outboundgroup-url-test",
4
- "definitions": {
5
- "types": { "$ref": "../../../definitions/types.json" },
6
- "patterns": { "$ref": "../../../definitions/patterns.json" },
7
- "enums": { "$ref": "../../../definitions/enums.json" },
8
- "groupbase": { "$ref": "./groupbase.json" }
9
- },
10
- "allOf": [
11
- { "title": "代理组基础配置", "$ref": "#/definitions/groupbase" },
12
- {
13
- "type": "object",
14
- "title": "url-test配置",
15
- "properties": {
16
- "tolerance": {
17
- "type": "integer",
18
- "title": "代理节点切换容差",
19
- "description": "新代理节点延迟至少比当前小多少程度,才进行代理节点切换(单位:ms)",
20
- "markdownDescription": "新代理节点延迟至少比当前小多少程度,才进行代理节点切换(单位:ms)"
21
- }
22
- }
23
- }
24
- ]
25
- }
@@ -1,74 +0,0 @@
1
- {
2
- "type": "object",
3
- "title": "健康检查",
4
- "definitions": {
5
- "compatible": { "$ref": "../../../definitions/compatible.json" },
6
- "types": { "$ref": "../../../definitions/types.json" },
7
- "patterns": { "$ref": "../../../definitions/patterns.json" },
8
- "enums": { "$ref": "../../../definitions/enums.json" }
9
- },
10
- "properties": {
11
- "enable": {
12
- "type": "boolean",
13
- "title": "启用健康检查",
14
- "description": "启用健康检查",
15
- "markdownDescription": "启用健康检查",
16
- "default": false
17
- },
18
- "url": {
19
- "$ref": "#/definitions/patterns/httpUrl",
20
- "title": "健康检查地址",
21
- "description": "健康检查url",
22
- "markdownDescription": "健康检查url",
23
- "default": "https://www.gstatic.com/generate_204"
24
- },
25
- "interval": {
26
- "$ref": "#/definitions/compatible/string",
27
- "title": "健康检查间隔",
28
- "description": "格式: <时长>[ms或s(默认:s)]",
29
- "markdownDescription": "格式: <时长>[ms或s(默认:s)]",
30
- "default": "300"
31
- },
32
- "timeout": {
33
- "$ref": "#/definitions/compatible/string",
34
- "title": "健康检查超时",
35
- "description": "格式: <时长>[ms或s(默认:ms)]",
36
- "markdownDescription": "格式: <时长>[ms或s(默认:ms)]",
37
- "default": "5000"
38
- },
39
- "lazy": {
40
- "type": "boolean",
41
- "title": "懒加载",
42
- "description": "未被使用时,不进行健康检查测试",
43
- "markdownDescription": "未被使用时,不进行健康检查测试",
44
- "default": true
45
- },
46
- "expected-status": {
47
- "anyOf": [
48
- {
49
- "type": "string",
50
- "pattern": "^(?:\\/?\\d{3}(-?\\d{3})?)+$",
51
- "title": "期望状态码",
52
- "description": "健康检查时期望的HTTP响应状态码",
53
- "markdownDescription": "健康检查时期望的HTTP响应状态码",
54
- "default": "*"
55
- },
56
- {
57
- "type": "integer",
58
- "minimum": 100,
59
- "maximum": 999,
60
- "title": "期望状态码",
61
- "description": "健康检查时期望的HTTP响应状态码",
62
- "markdownDescription": "健康检查时期望的HTTP响应状态码"
63
- },
64
- {
65
- "type": "string",
66
- "const": "*",
67
- "title": "期望状态码",
68
- "description": "健康检查时期望的HTTP响应状态码",
69
- "markdownDescription": "健康检查时期望的HTTP响应状态码"
70
- }
71
- ]
72
- }
73
- }
74
- }
@@ -1,159 +0,0 @@
1
- {
2
- "type": "object",
3
- "title": "proxy-provider",
4
- "definitions": {
5
- "types": { "$ref": "../../../definitions/types.json" },
6
- "patterns": { "$ref": "../../../definitions/patterns.json" },
7
- "enums": { "$ref": "../../../definitions/enums.json" },
8
- "health-check": { "$ref": "./health-check.json" }
9
- },
10
- "patternProperties": {
11
- "^default$": { "type": "null", "errorMessage": "不能使用default作为provider的名称" }
12
- },
13
- "additionalProperties": {
14
- "type": "object",
15
- "required": ["type"],
16
- "properties": {
17
- "type": {
18
- "enum": ["file", "http"],
19
- "markdownEnumDescriptions": ["本地文件", "网络文件"],
20
- "title": "provider类型",
21
- "description": "provider类型",
22
- "markdownDescription": "provider类型"
23
- },
24
- "path": {
25
- "type": "string",
26
- "title": "provider文件保存路径",
27
- "description": "默认使用MD5(url)作为文件名。内核工作目录的相对路径(如果想保存到任意位置,配置环境变量SKIP_SAFE_PATH_CHECK=1)",
28
- "markdownDescription": "默认使用MD5(`url`)作为文件名。内核工作目录的相对路径(如果想保存到任意位置,配置环境变量`SKIP_SAFE_PATH_CHECK=1`)"
29
- },
30
- "interval": {
31
- "type": "integer",
32
- "title": "provider更新间隔",
33
- "description": "单位:s",
34
- "markdownDescription": "单位:s"
35
- },
36
- "header": { "type": "object", "errorMessage": "类型应为object" },
37
- "health-check": { "$ref": "#/definitions/health-check" },
38
- "override": {
39
- "allOf": [
40
- {
41
- "type": "object",
42
- "title": "覆写节点内容",
43
- "description": "覆写节点内容",
44
- "properties": {
45
- "udp": {
46
- "type": "boolean",
47
- "title": "启用UDP",
48
- "description": "启用UDP",
49
- "markdownDescription": "启用`UDP`"
50
- },
51
- "up": {
52
- "type": "string",
53
- "title": "是否允许UDP通过代理",
54
- "description": "Hysteria/Hysteria2协议配置上行带宽",
55
- "markdownDescription": "`Hysteria`/`Hysteria2`协议配置上行带宽"
56
- },
57
- "down": {
58
- "type": "string",
59
- "title": "是否允许UDP通过代理",
60
- "description": "Hysteria/Hysteria2协议配置下行带宽",
61
- "markdownDescription": "`Hysteria`/`Hysteria2`协议配置下行带宽"
62
- },
63
- "dialer-proxy": {
64
- "type": "string",
65
- "title": "指定当前proxy通过下一跳的dialer-proxy建立网络连接",
66
- "description": "取值为proxy-groups,proxy的name",
67
- "markdownDescription": "取值为`proxy-groups`,`proxy`的`name`"
68
- },
69
- "skip-cert-verify": {
70
- "type": "boolean",
71
- "title": "跳过证书验证",
72
- "description": "跳过证书验证",
73
- "markdownDescription": "跳过证书验证"
74
- },
75
- "interface-name": {
76
- "type": "string",
77
- "title": "指定节点绑定的接口,从此接口发起连接",
78
- "description": "指定节点绑定的接口,从此接口发起连接",
79
- "markdownDescription": "指定节点绑定的接口,从此接口发起连接"
80
- },
81
- "routing-mark": {
82
- "type": "integer",
83
- "title": "节点发起连接时附加的路由标记",
84
- "description": "为Linux下的出站连接提供默认流量标记",
85
- "markdownDescription": "为Linux下的出站连接提供默认流量标记"
86
- },
87
- "ip-version": {
88
- "enum": ["dual", "ipv4", "ipv6", "ipv4-prefer", "ipv6-prefer"],
89
- "markdownEnumDescriptions": [
90
- "`IPv4`/`IPv6`双栈",
91
- "仅使用`IPv4`",
92
- "仅使用`IPv6`",
93
- "优先使用`IPv4`。对于`TCP`会进行双栈解析,并发链接,但是优先使用`IPv4`链接。`UDP`为双栈解析,获取结果中的第一个`IPv4`",
94
- "优先使用`IPv6`。对于`TCP`会进行双栈解析,并发链接,但是优先使用`IPv6`链接。`UDP`为双栈解析,获取结果中的第一个`IPv6`"
95
- ],
96
- "title": "设置节点使用IP版本",
97
- "description": "设置节点使用IP版本",
98
- "markdownDescription": "设置节点使用IP版本",
99
- "default": "dual"
100
- },
101
- "additional-prefix": {
102
- "type": "string",
103
- "title": "为节点名称添加固定前缀",
104
- "description": "为节点名称添加固定前缀",
105
- "markdownDescription": "为节点名称添加固定前缀"
106
- },
107
- "additional-suffix": {
108
- "type": "string",
109
- "title": "为节点名称添加固定后缀",
110
- "description": "为节点名称添加固定后缀",
111
- "markdownDescription": "为节点名称添加固定后缀"
112
- }
113
- }
114
- }
115
- ]
116
- },
117
- "filter": {
118
- "type": "string",
119
- "title": "节点过滤",
120
- "description": "保留满足关键词或正则表达式的节点(使用`号分隔)",
121
- "markdownDescription": "筛选满足关键词或`正则表达式`的节点(使用`号分隔)"
122
- },
123
- "exclude-filter": {
124
- "type": "string",
125
- "title": "节点排除",
126
- "description": "排除满足关键词或正则表达式的节点(不支持多个表达式)",
127
- "markdownDescription": "排除满足关键词或`正则表达式`的节点(不支持多个表达式)"
128
- },
129
- "exclude-type": {
130
- "type": "string",
131
- "title": "根据节点类型排除节点",
132
- "description": "direct, dns, ss, ssr, snell, socks5, http, vmess, vless, trojan, hysteria, hysteria2, wireguard, tuic, ssh(使用|分隔,不支持正则表达式)",
133
- "markdownDescription": "`direct`,`dns`,`ss`,`ssr`,`snell`,`socks5`,`http`,`vmess`,`vless`,`trojan`,`hysteria`,`hysteria2`,`wireguard`,`tuic`,`ssh`(使用`|`分隔,不支持正则表达式)"
134
- }
135
- },
136
- "if": {
137
- "properties": {
138
- "type": { "const": "http" }
139
- }
140
- },
141
- "then": {
142
- "required": ["url"],
143
- "properties": {
144
- "url": {
145
- "$ref": "#/definitions/patterns/httpUrl",
146
- "title": "provider网络文件地址",
147
- "description": "provider网络文件地址",
148
- "markdownDescription": "provider网络文件地址"
149
- },
150
- "proxy": {
151
- "type": "string",
152
- "title": "使用指定代理下载/更新provider",
153
- "description": "使用指定代理下载/更新provider",
154
- "markdownDescription": "使用指定代理下载/更新provider"
155
- }
156
- }
157
- }
158
- }
159
- }
@@ -1,9 +0,0 @@
1
- {
2
- "type": "array",
3
- "title": "认证配置",
4
- "description": "格式: <用户>:<密码>",
5
- "definitions": {
6
- "types": { "$ref": "../../definitions/types.json" },
7
- "patterns": { "$ref": "../../definitions/patterns.json" }
8
- }
9
- }
@@ -1,53 +0,0 @@
1
- {
2
- "type": "object",
3
- "title": "controller配置",
4
- "definitions": {
5
- "types": { "$ref": "../../definitions/types.json" },
6
- "patterns": { "$ref": "../../definitions/patterns.json" }
7
- },
8
- "properties": {
9
- "external-controller": {
10
- "$ref": "#/definitions/patterns/ipPort",
11
- "title": "外部控制器(HTTP)监听地址",
12
- "description": "可以使用RESTful API来控制内核",
13
- "markdownDescription": "可以使用RESTful API来控制内核"
14
- },
15
- "external-controller-tls": {
16
- "$ref": "#/definitions/patterns/ipPort",
17
- "title": "外部控制器(HTTPS)监听地址",
18
- "description": "可以使用RESTful API over HTTPS来控制内核",
19
- "markdownDescription": "可以使用RESTful API over HTTPS来控制内核"
20
- },
21
- "external-controller-unix": {
22
- "type": "string",
23
- "title": "外部控制器(Unix Socket)监听地址",
24
- "description": "从Unix Socket访问api接口不会验证secret,如果开启请自行保证安全问题(Windows版本大于17063也可以使用,即大于等于1803/RS4版本即可使用)",
25
- "markdownDescription": "从Unix Socket访问api接口不会验证secret,如果开启请自行保证安全问题(Windows版本大于17063也可以使用,即大于等于1803/RS4版本即可使用)"
26
- },
27
- "external-ui": {
28
- "type": "string",
29
- "title": "外部用户界面路径(默认:工作目录/ui)",
30
- "description": "可以将静态网页资源运行在RESTful API(可以为绝对路径,或者内核工作目录的相对路径)",
31
- "markdownDescription": "可以将静态网页资源运行在RESTful API(可以为绝对路径,或者内核工作目录的相对路径)"
32
- },
33
- "external-ui-url": {
34
- "$ref": "#/definitions/patterns/httpUrl",
35
- "title": "外部用户界面下载地址",
36
- "description": "外部用户界面下载地址",
37
- "markdownDescription": "外部用户界面下载地址",
38
- "default": "https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip"
39
- },
40
- "external-ui-name": {
41
- "type": "string",
42
- "title": "外部用户界面下载目录",
43
- "description": "下载时会下载到指定文件夹(默认下载到external-ui配置的目录)",
44
- "markdownDescription": "下载时会下载到指定文件夹(默认下载到`external-ui`配置的目录)"
45
- },
46
- "secret": {
47
- "type": "string",
48
- "title": "外部控制器RESTful API访问密钥",
49
- "description": "请求头Authorization:Bearer <secret>",
50
- "markdownDescription": "请求头Authorization:Bearer <`secret`>"
51
- }
52
- }
53
- }
@@ -1,163 +0,0 @@
1
- {
2
- "type": "object",
3
- "description": "DNS配置",
4
- "definitions": {
5
- "types": { "$ref": "../../definitions/types.json" },
6
- "patterns": { "$ref": "../../definitions/patterns.json" }
7
- },
8
- "properties": {
9
- "enable": {
10
- "type": "boolean",
11
- "title": "启用DNS",
12
- "description": "关闭将使用系统DNS",
13
- "markdownDescription": "关闭将使用系统DNS",
14
- "default": false
15
- },
16
- "prefer-h3": {
17
- "type": "boolean",
18
- "title": "启用DoH的HTTP/3支持",
19
- "description": "启用DoH的HTTP/3支持",
20
- "markdownDescription": "启用DoH的`HTTP/3`支持",
21
- "default": false
22
- },
23
- "ipv6": {
24
- "type": "boolean",
25
- "title": "是否解析IPV6",
26
- "description": "如为false,则回应内容为AAAA的空解析",
27
- "markdownDescription": "如为false,则回应内容为AAAA的空解析",
28
- "default": false
29
- },
30
- "ipv6-timeout": {
31
- "type": "integer",
32
- "title": "解析IPV6超时时间",
33
- "description": "单位: ms",
34
- "markdownDescription": "单位: ms",
35
- "default": 100
36
- },
37
- "use-hosts": {
38
- "type": "boolean",
39
- "title": "启用配置中的hosts配置",
40
- "description": "启用配置中的hosts配置",
41
- "markdownDescription": "启用配置中的`hosts`配置",
42
- "default": true
43
- },
44
- "use-system-hosts": {
45
- "type": "boolean",
46
- "title": "查询系统hosts文件",
47
- "description": "优先级低于配置中的hosts配置",
48
- "markdownDescription": "优先级低于配置中的`hosts`配置",
49
- "default": true
50
- },
51
- "nameserver": {
52
- "$ref": "#/definitions/types/stringArray",
53
- "title": "默认域名解析服务器",
54
- "description": "支持UDP,TCP,DoT,DoH,DoQ",
55
- "markdownDescription": "支持`UDP`,`TCP`,`DoT`,`DoH`,`DoQ`",
56
- "default": ["https://doh.pub/dns-query", "tls://223.5.5.5:853"]
57
- },
58
- "fallback": {
59
- "$ref": "#/definitions/types/stringArray",
60
- "title": "备用域名解析服务器",
61
- "description": "一般情况下使用境外DNS服务器,保证结果可信",
62
- "markdownDescription": "一般情况下使用境外DNS服务器,保证结果可信"
63
- },
64
- "fallback-filter": {
65
- "type": "object",
66
- "title": "备用域名解析服务器过滤",
67
- "description": "满足条件的将采用fallback的解析结果,或只采用fallback解析结果",
68
- "markdownDescription": "满足条件的将采用`fallback`的解析结果,或只采用`fallback`解析结果",
69
- "properties": {
70
- "geoip": {
71
- "type": "boolean",
72
- "title": "启用fallback-filter",
73
- "description": "启用fallback-filter",
74
- "markdownDescription": "启用`fallback-filter`",
75
- "default": true
76
- },
77
- "geoip-code": {
78
- "type": "string",
79
- "title": "启用fallback-filter",
80
- "description": "除geoip-code配置的国家IP外,其他IP结果会被视为污染。geoip-code对应国家的结果会直接采用,其余结果将采用fallback的解析结果",
81
- "markdownDescription": "除`geoip-code`配置的国家IP外,其他IP结果会被视为污染。`geoip-code`对应国家的结果会直接采用,其余结果将采用`fallback`的解析结果",
82
- "default": "CN"
83
- },
84
- "ipcidr": {
85
- "$ref": "#/definitions/types/ipCIDRArray",
86
- "title": "DNS污染网段列表",
87
- "description": "这些网段的结果会被视为污染,将采用fallback的解析结果",
88
- "markdownDescription": "这些网段的结果会被视为污染,将采用`fallback`的解析结果"
89
- },
90
- "domain": {
91
- "$ref": "#/definitions/types/stringArray",
92
- "title": "DNS污染域名列表",
93
- "description": "这些域名的结果会被视为污染,将采用fallback的解析结果",
94
- "markdownDescription": "这些域名的结果会被视为污染,将采用`fallback`的解析结果"
95
- },
96
- "geosite": {
97
- "$ref": "#/definitions/types/stringArray",
98
- "title": "DNS污染GeoSite列表",
99
- "description": "这些GeoSite的结果会被视为污染,将采用fallback的解析结果",
100
- "markdownDescription": "这些[GeoSite](https://github.com/MetaCubeX/meta-rules-dat/tree/meta/geo/geosite)的结果会被视为污染,将采用`fallback`的解析结果",
101
- "deprecationMessage": "使用nameserver-policy代替geosite(geosite将在未来移除)"
102
- }
103
- }
104
- },
105
- "listen": {
106
- "$ref": "#/definitions/patterns/ipPort",
107
- "title": "DNS服务器监听地址",
108
- "description": "DNS服务器监听地址",
109
- "markdownDescription": "DNS服务器监听地址",
110
- "default": "127.0.0.1:53"
111
- },
112
- "enhanced-mode": {
113
- "enum": ["normal", "fake-ip", "redir-host"],
114
- "markdownEnumDescriptions": ["普通模式", "fake-ip模式", "redir-host模式"],
115
- "title": "增强模式",
116
- "description": "DNS处理模式",
117
- "markdownDescription": "DNS处理模式",
118
- "default": "fake-ip"
119
- },
120
- "fake-ip-range": {
121
- "$ref": "#/definitions/patterns/ipCIDR",
122
- "title": "fake-ip的预留映射地址段",
123
- "description": "TUN模式的网卡默认IP也使用此值作为参考",
124
- "markdownDescription": "TUN模式的网卡默认IP也使用此值作为参考",
125
- "default": "198.18.0.1/16"
126
- },
127
- "fake-ip-filter": {
128
- "$ref": "#/definitions/types/stringArray",
129
- "title": "fake-ip过滤",
130
- "description": "哪些域名不使用fake-ip",
131
- "markdownDescription": "哪些域名不使用`fake-ip`",
132
- "default": ["dns.msftnsci.com", "www.msftnsci.com", "www.msftconnecttest.com"]
133
- },
134
- "default-nameserver": {
135
- "$ref": "#/definitions/types/stringArray",
136
- "title": "元域名解析服务器",
137
- "description": "解析nameserver,fallback以及其他DNS服务器配置的DNS服务器(只能使用纯IP地址,支持UDP,TCP,DoT,DoH,DoQ)",
138
- "markdownDescription": "解析`nameserver`,`fallback`以及其他DNS服务器配置的DNS服务器(只能使用纯IP地址,支持`UDP`,`TCP`,`DoT`,`DoH`,`DoQ`)",
139
- "default": ["114.114.114.114", "223.5.5.5", "8.8.8.8", "1.0.0.1"]
140
- },
141
- "cache-algorithm": {
142
- "enum": ["lru", "arc"],
143
- "markdownEnumDescriptions": ["最近最少使用", "自适应替换缓存"],
144
- "title": "缓存算法",
145
- "description": "缓存算法",
146
- "markdownDescription": "缓存算法",
147
- "default": "lru"
148
- },
149
- "nameserver-policy": {
150
- "type": "object",
151
- "additionalProperties": { "$ref": "#/definitions/types/stringArray" },
152
- "title": "DNS解析服务器策略",
153
- "description": "指定地址使用特定DNS解析服务器",
154
- "markdownDescription": "指定地址使用特定DNS解析服务器"
155
- },
156
- "proxy-server-nameserver": {
157
- "$ref": "#/definitions/types/stringArray",
158
- "title": "代理节点DNS解析服务器",
159
- "description": "用于解析代理节点的域名",
160
- "markdownDescription": "用于解析代理节点的域名"
161
- }
162
- }
163
- }
@@ -1,22 +0,0 @@
1
- {
2
- "type": "object",
3
- "title": "ebpf配置",
4
- "definitions": {
5
- "types": { "$ref": "../../definitions/types.json" },
6
- "patterns": { "$ref": "../../definitions/patterns.json" }
7
- },
8
- "properties": {
9
- "redirect-to-tun": {
10
- "$ref": "#/definitions/types/stringArray",
11
- "title": "重定向到TUN接口列表",
12
- "description": "支持TCP+UDP(使用该功能请勿启用auto-route)",
13
- "markdownDescription": "支持TCP+UDP(使用该功能请勿启用`auto-route`)"
14
- },
15
- "auto-redir": {
16
- "$ref": "#/definitions/types/stringArray",
17
- "title": "自动重定向接口列表",
18
- "description": "仅支持TCP",
19
- "markdownDescription": "仅支持TCP"
20
- }
21
- }
22
- }
@@ -1,29 +0,0 @@
1
- {
2
- "type": "object",
3
- "title": "实验性内容配置",
4
- "definitions": {
5
- "types": { "$ref": "../../definitions/types.json" },
6
- "patterns": { "$ref": "../../definitions/patterns.json" }
7
- },
8
- "properties": {
9
- "quic-go-disable-gso": {
10
- "type": "boolean",
11
- "title": "quic-go禁用GSO",
12
- "description": "quic禁用GSO(Generic Segmentation Offload)通用分段卸载,可能会导致Linux平台上的性能下降(等价于环境变量QUIC_GO_DISABLE_GSO=1)",
13
- "markdownDescription": "quic禁用`GSO`(Generic Segmentation Offload)通用分段卸载,可能会导致Linux平台上的性能下降(等价于环境变量`QUIC_GO_DISABLE_GSO=1`)"
14
- },
15
- "quic-go-disable-ecn": {
16
- "type": "boolean",
17
- "title": "quic-go禁用ECN",
18
- "description": "quic禁用ECN(Explicit Congestion Notification)显式拥塞通知(等价于环境变量QUIC_GO_DISABLE_ECN=1)",
19
- "markdownDescription": "quic禁用`ECN`(Explicit Congestion Notification)显式拥塞通知(等价于环境变量QUIC_GO_DISABLE_ECN=1)",
20
- "default": true
21
- },
22
- "dialer-ip4p-convert": {
23
- "type": "boolean",
24
- "title": "启用IP4P地址转换",
25
- "description": "NATMap可以打通运营商完全锥型NAT网关的端口,使得通过运营商网关的公网IP:端口能够访问到用户内网的服务。",
26
- "markdownDescription": "`NATMap`可以打通运营商完全锥型NAT网关的端口,使得通过运营商网关的公网IP:端口能够访问到用户内网的服务。"
27
- }
28
- }
29
- }