meta-json-schema 1.18.4-beta3 → 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.
- package/CHANGELOG.md +44 -40
- package/LICENSE +21 -21
- package/README.md +204 -204
- package/package.json +50 -41
- package/schemas/clash-verge-merge-json-schema.json +1 -0
- package/schemas/meta-json-schema.json +1 -0
- package/.gitattributes +0 -2
- package/.github/workflows/release_on_tag.yml +0 -44
- package/.github/workflows/workflow_runs_cleaner.yml +0 -18
- package/.vscode/extensions.json +0 -3
- package/.vscode/settings.json +0 -30
- package/scripts/release.mjs +0 -29
- package/scripts/util/bundle.mjs +0 -91
- package/scripts/util/env.mjs +0 -9
- package/scripts/util/file.mjs +0 -13
- package/scripts/watch.mjs +0 -28
- package/src/clash-verge-merge-json-schema.json +0 -58
- package/src/definitions/compatible.json +0 -6
- package/src/definitions/enums.json +0 -58
- package/src/definitions/patterns.json +0 -87
- package/src/definitions/types.json +0 -70
- package/src/meta-json-schema.json +0 -168
- package/src/modules/adapter/outbound/base.json +0 -91
- package/src/modules/adapter/outbound/direct.json +0 -39
- package/src/modules/adapter/outbound/dns.json +0 -39
- package/src/modules/adapter/outbound/http.json +0 -101
- package/src/modules/adapter/outbound/hysteria.json +0 -182
- package/src/modules/adapter/outbound/hysteria2.json +0 -146
- package/src/modules/adapter/outbound/reality.json +0 -25
- package/src/modules/adapter/outbound/shadowsocks.json +0 -308
- package/src/modules/adapter/outbound/shadowsocksr.json +0 -151
- package/src/modules/adapter/outbound/singmux.json +0 -95
- package/src/modules/adapter/outbound/snell.json +0 -65
- package/src/modules/adapter/outbound/socks5.json +0 -88
- package/src/modules/adapter/outbound/ssh.json +0 -87
- package/src/modules/adapter/outbound/trojan.json +0 -93
- package/src/modules/adapter/outbound/tuic.json +0 -213
- package/src/modules/adapter/outbound/vless.json +0 -146
- package/src/modules/adapter/outbound/vmess.json +0 -251
- package/src/modules/adapter/outbound/wireguard.json +0 -150
- package/src/modules/adapter/outboundgroup/fallback.json +0 -18
- package/src/modules/adapter/outboundgroup/groupbase.json +0 -98
- package/src/modules/adapter/outboundgroup/loadbalance.json +0 -29
- package/src/modules/adapter/outboundgroup/relay.json +0 -18
- package/src/modules/adapter/outboundgroup/urltest.json +0 -25
- package/src/modules/adapter/provider/health-check.json +0 -74
- package/src/modules/adapter/provider/provider.json +0 -159
- package/src/modules/config/authentication.json +0 -9
- package/src/modules/config/controller.json +0 -53
- package/src/modules/config/dns.json +0 -163
- package/src/modules/config/ebpf.json +0 -22
- package/src/modules/config/experimental.json +0 -29
- package/src/modules/config/general.json +0 -140
- package/src/modules/config/geox-url.json +0 -38
- package/src/modules/config/hosts.json +0 -9
- package/src/modules/config/inbound.json +0 -107
- package/src/modules/config/iptables.json +0 -38
- package/src/modules/config/listeners.json +0 -90
- package/src/modules/config/ntp.json +0 -50
- package/src/modules/config/profile.json +0 -24
- package/src/modules/config/proxies.json +0 -118
- package/src/modules/config/proxy-groups.json +0 -21
- package/src/modules/config/proxy-providers.json +0 -11
- package/src/modules/config/rules.json +0 -11
- package/src/modules/config/sniffer.json +0 -111
- package/src/modules/config/sub-rules.json +0 -14
- package/src/modules/config/tls.json +0 -28
- package/src/modules/config/tunnels.json +0 -49
- package/src/modules/listener/config/tuic.json +0 -102
- package/src/modules/listener/config/tun.json +0 -205
- package/src/modules/listener/inbound/base.json +0 -43
- package/src/modules/listener/inbound/http.json +0 -18
- package/src/modules/listener/inbound/hysteria2.json +0 -102
- package/src/modules/listener/inbound/mixed.json +0 -26
- package/src/modules/listener/inbound/mux.json +0 -42
- package/src/modules/listener/inbound/redir.json +0 -18
- package/src/modules/listener/inbound/shadowsocks.json +0 -41
- package/src/modules/listener/inbound/socks.json +0 -26
- package/src/modules/listener/inbound/tproxy.json +0 -26
- package/src/modules/listener/inbound/tuic.json +0 -84
- package/src/modules/listener/inbound/tun.json +0 -207
- package/src/modules/listener/inbound/tunnel.json +0 -33
- package/src/modules/listener/inbound/vmess.json +0 -72
- package/src/modules/listener/sing/sing.json +0 -42
- package/src/modules/rules/provider/provider.json +0 -71
- package/src/modules/rules/rule.json +0 -165
- package/test/clash-meta/example1.yaml +0 -3170
- package/test/clash-verge/merge.yaml +0 -212
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "array",
|
|
3
|
-
"title": "规则配置",
|
|
4
|
-
"definitions": {
|
|
5
|
-
"types": { "$ref": "../../definitions/types.json" },
|
|
6
|
-
"patterns": { "$ref": "../../definitions/patterns.json" },
|
|
7
|
-
"enums": { "$ref": "../../definitions/enums.json" },
|
|
8
|
-
"rule": { "$ref": "../rules/rule.json" }
|
|
9
|
-
},
|
|
10
|
-
"items": { "$ref": "#/definitions/rule" }
|
|
11
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "object",
|
|
3
|
-
"description": "域名嗅探配置",
|
|
4
|
-
"definitions": {
|
|
5
|
-
"types": { "$ref": "../../definitions/types.json" },
|
|
6
|
-
"patterns": { "$ref": "../../definitions/patterns.json" }
|
|
7
|
-
},
|
|
8
|
-
"properties": {
|
|
9
|
-
"enable": {
|
|
10
|
-
"type": "boolean",
|
|
11
|
-
"title": "启用域名嗅探",
|
|
12
|
-
"description": "Clash使用Mapping机制解决透明代理情况下,无法通过Redir端口传递域名的问题。但此机制会导致如果不使用Clash内置的DNS解析服务,就无法准确还原域名,进行域名分流的问题。Meta内置了Sniffer域名嗅器,通过读取握手包内的域名字段,将IP还原成域名,有效解决Mapping机制的短板。",
|
|
13
|
-
"markdownDescription": "Clash使用Mapping机制解决透明代理情况下,无法通过Redir端口传递域名的问题。但此机制会导致如果不使用Clash内置的DNS解析服务,就无法准确还原域名,进行域名分流的问题。Meta内置了Sniffer域名嗅器,通过读取握手包内的域名字段,将IP还原成域名,有效解决Mapping机制的短板。",
|
|
14
|
-
"default": false
|
|
15
|
-
},
|
|
16
|
-
"override-destination": {
|
|
17
|
-
"type": "boolean",
|
|
18
|
-
"title": "启用嗅探结果作为实际访问",
|
|
19
|
-
"description": "全局配置,优先级低于sniffer.sniff中的配置",
|
|
20
|
-
"markdownDescription": "全局配置,优先级低于`sniffer.sniff`中的配置",
|
|
21
|
-
"default": true
|
|
22
|
-
},
|
|
23
|
-
"force-domain": {
|
|
24
|
-
"$ref": "#/definitions/types/domainWildcardArray",
|
|
25
|
-
"title": "需要强制嗅探的域名",
|
|
26
|
-
"description": "默认情况下只对IP进行嗅探",
|
|
27
|
-
"markdownDescription": "默认情况下只对IP进行嗅探"
|
|
28
|
-
},
|
|
29
|
-
"skip-domain": {
|
|
30
|
-
"$ref": "#/definitions/types/domainWildcardArray",
|
|
31
|
-
"title": "需要跳过嗅探的域名",
|
|
32
|
-
"description": "默认情况下只对IP进行嗅探",
|
|
33
|
-
"markdownDescription": "默认情况下只对IP进行嗅探"
|
|
34
|
-
},
|
|
35
|
-
"sniffing": {
|
|
36
|
-
"$ref": "#/definitions/types/stringArray",
|
|
37
|
-
"title": "限制嗅探类型范围",
|
|
38
|
-
"description": "支持TLS,HTTP,QUIC",
|
|
39
|
-
"markdownDescription": "支持`TLS`,`HTTP`,`QUIC`",
|
|
40
|
-
"deprecationMessage": "推荐使用sniff"
|
|
41
|
-
},
|
|
42
|
-
"port-whitelist": {
|
|
43
|
-
"$ref": "#/definitions/types/portRangeArray",
|
|
44
|
-
"title": "限制嗅探端口范围",
|
|
45
|
-
"description": "要求搭配sniffing使用(格式:80 或 80-88)",
|
|
46
|
-
"markdownDescription": "要求搭配`sniffing`使用(格式:`80` 或 `80-88`)",
|
|
47
|
-
"deprecationMessage": "推荐使用sniff"
|
|
48
|
-
},
|
|
49
|
-
"force-dns-mapping": {
|
|
50
|
-
"type": "boolean",
|
|
51
|
-
"title": "启用redir-host强制嗅探",
|
|
52
|
-
"description": "对redir-host类型识别的流量进行强制嗅探",
|
|
53
|
-
"markdownDescription": "对`redir-host`类型识别的流量进行强制嗅探",
|
|
54
|
-
"default": true
|
|
55
|
-
},
|
|
56
|
-
"parse-pure-ip": {
|
|
57
|
-
"type": "boolean",
|
|
58
|
-
"title": "启用未获取到域名强制嗅探",
|
|
59
|
-
"description": "对所有未获取到域名的流量进行强制嗅探",
|
|
60
|
-
"markdownDescription": "对所有未获取到域名的流量进行强制嗅探",
|
|
61
|
-
"default": true
|
|
62
|
-
},
|
|
63
|
-
"sniff": {
|
|
64
|
-
"type": "object",
|
|
65
|
-
"title": "域名嗅探规则",
|
|
66
|
-
"description": "域名嗅探规则",
|
|
67
|
-
"markdownDescription": "域名嗅探规则",
|
|
68
|
-
"properties": {
|
|
69
|
-
"TLS": {
|
|
70
|
-
"type": "object",
|
|
71
|
-
"properties": {
|
|
72
|
-
"ports": {
|
|
73
|
-
"$ref": "#/definitions/types/portRangeArray",
|
|
74
|
-
"description": "嗅探端口列表"
|
|
75
|
-
},
|
|
76
|
-
"override-destination": {
|
|
77
|
-
"type": "boolean",
|
|
78
|
-
"title": "启用嗅探结果作为实际访问"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"HTTP": {
|
|
83
|
-
"type": "object",
|
|
84
|
-
"properties": {
|
|
85
|
-
"ports": {
|
|
86
|
-
"$ref": "#/definitions/types/portRangeArray",
|
|
87
|
-
"description": "嗅探端口列表"
|
|
88
|
-
},
|
|
89
|
-
"override-destination": {
|
|
90
|
-
"type": "boolean",
|
|
91
|
-
"title": "启用嗅探结果作为实际访问"
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
"QUIC": {
|
|
96
|
-
"type": "object",
|
|
97
|
-
"properties": {
|
|
98
|
-
"ports": {
|
|
99
|
-
"$ref": "#/definitions/types/portRangeArray",
|
|
100
|
-
"description": "嗅探端口列表"
|
|
101
|
-
},
|
|
102
|
-
"override-destination": {
|
|
103
|
-
"type": "boolean",
|
|
104
|
-
"title": "启用嗅探结果作为实际访问"
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "object",
|
|
3
|
-
"title": "子规则配置",
|
|
4
|
-
"definitions": {
|
|
5
|
-
"types": { "$ref": "../../definitions/types.json" },
|
|
6
|
-
"patterns": { "$ref": "../../definitions/patterns.json" },
|
|
7
|
-
"enums": { "$ref": "../../definitions/enums.json" },
|
|
8
|
-
"rule": { "$ref": "../rules/rule.json" }
|
|
9
|
-
},
|
|
10
|
-
"additionalProperties": {
|
|
11
|
-
"type": "array",
|
|
12
|
-
"items": { "$ref": "#/definitions/rule" }
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "object",
|
|
3
|
-
"title": "TLS配置",
|
|
4
|
-
"definitions": {
|
|
5
|
-
"types": { "$ref": "../../definitions/types.json" },
|
|
6
|
-
"patterns": { "$ref": "../../definitions/patterns.json" }
|
|
7
|
-
},
|
|
8
|
-
"properties": {
|
|
9
|
-
"certificate": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"title": "证书或证书路径",
|
|
12
|
-
"description": "PEM格式",
|
|
13
|
-
"markdownDescription": "PEM格式"
|
|
14
|
-
},
|
|
15
|
-
"private-key": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"title": "私钥",
|
|
18
|
-
"description": "私钥",
|
|
19
|
-
"markdownDescription": "私钥"
|
|
20
|
-
},
|
|
21
|
-
"custom-certifactes": {
|
|
22
|
-
"$ref": "#/definitions/types/stringArray",
|
|
23
|
-
"title": "自定义证书列表",
|
|
24
|
-
"description": "自定义证书列表",
|
|
25
|
-
"markdownDescription": "自定义证书列表"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "array",
|
|
3
|
-
"description": "隧道配置",
|
|
4
|
-
"definitions": {
|
|
5
|
-
"types": { "$ref": "../../definitions/types.json" },
|
|
6
|
-
"patterns": { "$ref": "../../definitions/patterns.json" }
|
|
7
|
-
},
|
|
8
|
-
"items": {
|
|
9
|
-
"anyOf": [
|
|
10
|
-
{
|
|
11
|
-
"pattern": "^(tcp)?/?(udp)?(?:,[^,]+){2,3}$",
|
|
12
|
-
"errorMessage": "格式(<tcp|udp|tcp/udp>,<address>,<target>,[proxy])"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"type": "object",
|
|
16
|
-
"properties": {
|
|
17
|
-
"network": {
|
|
18
|
-
"type": "array",
|
|
19
|
-
"items": {
|
|
20
|
-
"enum": ["tcp", "udp"],
|
|
21
|
-
"markdownEnumDescriptions": ["tcp", "udp"]
|
|
22
|
-
},
|
|
23
|
-
"title": "需要监听的网络类型",
|
|
24
|
-
"description": "可为tcp/udp",
|
|
25
|
-
"markdownDescription": "可为`tcp`/`udp`"
|
|
26
|
-
},
|
|
27
|
-
"address": {
|
|
28
|
-
"$ref": "#/definitions/patterns/ipPort",
|
|
29
|
-
"title": "本地监听地址",
|
|
30
|
-
"description": "本地监听地址",
|
|
31
|
-
"markdownDescription": "本地监听地址"
|
|
32
|
-
},
|
|
33
|
-
"target": {
|
|
34
|
-
"type": "string",
|
|
35
|
-
"title": "转发的目标地址",
|
|
36
|
-
"description": "转发的目标地址",
|
|
37
|
-
"markdownDescription": "转发的目标地址"
|
|
38
|
-
},
|
|
39
|
-
"proxy": {
|
|
40
|
-
"type": "string",
|
|
41
|
-
"title": "经由代理",
|
|
42
|
-
"description": "经由某个proxy/proxy-group发送流量(可选)",
|
|
43
|
-
"markdownDescription": "经由某个`proxy`/`proxy-group`发送流量(可选)"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
}
|
|
49
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "object",
|
|
3
|
-
"title": "tuic-server配置",
|
|
4
|
-
"definitions": {
|
|
5
|
-
"types": { "$ref": "../../../definitions/types.json" },
|
|
6
|
-
"patterns": { "$ref": "../../../definitions/patterns.json" },
|
|
7
|
-
"enums": { "$ref": "../../../definitions/enums.json" },
|
|
8
|
-
"mux-option": { "$ref": "../sing/sing.json" }
|
|
9
|
-
},
|
|
10
|
-
"required": ["enable", "listen"],
|
|
11
|
-
"properties": {
|
|
12
|
-
"enable": {
|
|
13
|
-
"type": "boolean",
|
|
14
|
-
"title": "启用tuic-server",
|
|
15
|
-
"description": "启用tuic-server",
|
|
16
|
-
"markdownDescription": "启用`tuic-server`"
|
|
17
|
-
},
|
|
18
|
-
"listen": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"title": "监听地址",
|
|
21
|
-
"description": "多个使用,分隔",
|
|
22
|
-
"markdownDescription": "多个使用,分隔"
|
|
23
|
-
},
|
|
24
|
-
"token": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"title": "Token",
|
|
27
|
-
"description": "Token",
|
|
28
|
-
"markdownDescription": "Token"
|
|
29
|
-
},
|
|
30
|
-
"users": {
|
|
31
|
-
"type": "object",
|
|
32
|
-
"title": "用户列表(key: value格式)",
|
|
33
|
-
"description": "uuid:password",
|
|
34
|
-
"markdownDescription": "`uuid`:`password`",
|
|
35
|
-
"additionalProperties": { "type": "string" }
|
|
36
|
-
},
|
|
37
|
-
"certificate": {
|
|
38
|
-
"type": "string",
|
|
39
|
-
"title": "证书或证书路径",
|
|
40
|
-
"description": "PEM格式",
|
|
41
|
-
"markdownDescription": "PEM格式"
|
|
42
|
-
},
|
|
43
|
-
"private-key": {
|
|
44
|
-
"type": "string",
|
|
45
|
-
"title": "私钥",
|
|
46
|
-
"description": "私钥",
|
|
47
|
-
"markdownDescription": "私钥"
|
|
48
|
-
},
|
|
49
|
-
"congestion-controller": {
|
|
50
|
-
"enum": ["cubic", "new_reno", "bbr_meta_v1", "bbr_meta_v2", "bbr"],
|
|
51
|
-
"markdownEnumDescriptions": [
|
|
52
|
-
"根据网络拥塞窗口的大小来调整传输速率,以使其在拥塞和非拥塞期间保持平衡",
|
|
53
|
-
"通过在网络发生拥塞时执行快速恢复和快速重传来改善数据传输性能",
|
|
54
|
-
"`BBR`算法变体版本,通过引入新的机制和策略来进一步提升网络性能",
|
|
55
|
-
"`BBR`算法变体版本,通过引入新的机制和策略来进一步提升网络性能",
|
|
56
|
-
"通过动态估计网络的带宽和往返时间(`RTT`),并根据这些信息来调整数据传输速率"
|
|
57
|
-
],
|
|
58
|
-
"title": "拥塞控制算法",
|
|
59
|
-
"description": "拥塞控制算法",
|
|
60
|
-
"markdownDescription": "拥塞控制算法"
|
|
61
|
-
},
|
|
62
|
-
"max-idle-time": {
|
|
63
|
-
"type": "integer",
|
|
64
|
-
"title": "连接的最大空闲时间",
|
|
65
|
-
"description": "单位:ms",
|
|
66
|
-
"markdownDescription": "单位:ms"
|
|
67
|
-
},
|
|
68
|
-
"authentication-timeout": {
|
|
69
|
-
"type": "integer",
|
|
70
|
-
"title": "认证超时时间",
|
|
71
|
-
"description": "单位:ms",
|
|
72
|
-
"markdownDescription": "单位:ms"
|
|
73
|
-
},
|
|
74
|
-
"alpn": {
|
|
75
|
-
"$ref": "#/definitions/types/stringArray",
|
|
76
|
-
"title": "ALPN",
|
|
77
|
-
"description": "Application-Layer Protocol Negotiation(应用层协议协商)",
|
|
78
|
-
"markdownDescription": "Application-Layer Protocol Negotiation(应用层协议协商)"
|
|
79
|
-
},
|
|
80
|
-
"max-udp-relay-packet-size": {
|
|
81
|
-
"type": "integer",
|
|
82
|
-
"title": "最大的UDP数据包中继大小",
|
|
83
|
-
"description": "单位:bytes",
|
|
84
|
-
"markdownDescription": "单位:bytes",
|
|
85
|
-
"default": 1500
|
|
86
|
-
},
|
|
87
|
-
"max-datagram-frame-size": {
|
|
88
|
-
"type": "integer",
|
|
89
|
-
"title": "最大数据帧大小",
|
|
90
|
-
"description": "不超过1400",
|
|
91
|
-
"markdownDescription": "不超过1400"
|
|
92
|
-
},
|
|
93
|
-
"cwnd": {
|
|
94
|
-
"type": "integer",
|
|
95
|
-
"title": "拥塞窗口大小",
|
|
96
|
-
"description": "拥塞窗口大小(Congestion Window)",
|
|
97
|
-
"markdownDescription": "拥塞窗口大小(Congestion Window)",
|
|
98
|
-
"default": 32
|
|
99
|
-
},
|
|
100
|
-
"mux-option": { "title": "多路复用配置", "$ref": "#/definitions/mux-option" }
|
|
101
|
-
}
|
|
102
|
-
}
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "object",
|
|
3
|
-
"title": "tun配置",
|
|
4
|
-
"definitions": {
|
|
5
|
-
"types": { "$ref": "../../../definitions/types.json" },
|
|
6
|
-
"patterns": { "$ref": "../../../definitions/patterns.json" },
|
|
7
|
-
"enums": { "$ref": "../../../definitions/enums.json" }
|
|
8
|
-
},
|
|
9
|
-
"properties": {
|
|
10
|
-
"enable": {
|
|
11
|
-
"type": "boolean",
|
|
12
|
-
"title": "启用TUN模式",
|
|
13
|
-
"description": "启用TUN模式",
|
|
14
|
-
"markdownDescription": "启用`TUN`模式",
|
|
15
|
-
"default": false
|
|
16
|
-
},
|
|
17
|
-
"device": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"title": "指定tun网卡名称",
|
|
20
|
-
"description": "指定tun网卡名称(macOS强制为utun)",
|
|
21
|
-
"markdownDescription": "指定tun网卡名称(macOS强制为`utun`)"
|
|
22
|
-
},
|
|
23
|
-
"stack": {
|
|
24
|
-
"type": "string",
|
|
25
|
-
"title": "TUN模式堆栈",
|
|
26
|
-
"enum": ["system", "gvisor", "mixed"],
|
|
27
|
-
"markdownEnumDescriptions": [
|
|
28
|
-
"可以提供更稳定/全面的tun体验,且占用相对其他堆栈更低",
|
|
29
|
-
"通过在用户空间中实现网络协议栈,可以提供更高的安全性和隔离性,同时可以避免操作系统内核和用户空间之间的切换,从而在特定情况下具有更好的网络处理性能",
|
|
30
|
-
"混合堆栈,tcp使用`system`栈,udp使用`gvisor`栈,使用体验可能相对更好"
|
|
31
|
-
],
|
|
32
|
-
"description": "如无使用问题,建议使用mixed(默认gvisor)",
|
|
33
|
-
"markdownDescription": "如无使用问题,建议使用`mixed`(默认`gvisor`)",
|
|
34
|
-
"default": "gvisor"
|
|
35
|
-
},
|
|
36
|
-
"dns-hijack": {
|
|
37
|
-
"$ref": "#/definitions/types/stringArray",
|
|
38
|
-
"title": "DNS劫持",
|
|
39
|
-
"description": "一般设置为any:53即可,即劫持所有53端口的udp流量",
|
|
40
|
-
"markdownDescription": "一般设置为`any:53`即可,即劫持所有53端口的udp流量",
|
|
41
|
-
"default": ["0.0.0.0:53"]
|
|
42
|
-
},
|
|
43
|
-
"auto-route": {
|
|
44
|
-
"type": "boolean",
|
|
45
|
-
"title": "自动设置全局路由",
|
|
46
|
-
"description": "可以自动将全局流量路由进入TUN网卡",
|
|
47
|
-
"markdownDescription": "可以自动将全局流量路由进入`TUN`网卡",
|
|
48
|
-
"default": true
|
|
49
|
-
},
|
|
50
|
-
"auto-detect-interface": {
|
|
51
|
-
"type": "boolean",
|
|
52
|
-
"title": "自动选择流量出口接口",
|
|
53
|
-
"description": "多出口网卡同时连接的设备建议手动指定出口网卡",
|
|
54
|
-
"markdownDescription": "多出口网卡同时连接的设备建议手动指定出口网卡",
|
|
55
|
-
"default": true
|
|
56
|
-
},
|
|
57
|
-
"mtu": {
|
|
58
|
-
"type": "integer",
|
|
59
|
-
"minimum": 1,
|
|
60
|
-
"maximum": 65534,
|
|
61
|
-
"title": "最大传输单元",
|
|
62
|
-
"description": "会影响极限状态下的速率,一般用户默认即可",
|
|
63
|
-
"markdownDescription": "会影响极限状态下的速率,一般用户默认即可",
|
|
64
|
-
"default": 9000
|
|
65
|
-
},
|
|
66
|
-
"gso": {
|
|
67
|
-
"type": "boolean",
|
|
68
|
-
"title": "启用通用分段卸载",
|
|
69
|
-
"description": "仅支持Linux",
|
|
70
|
-
"markdownDescription": "仅支持Linux",
|
|
71
|
-
"default": false
|
|
72
|
-
},
|
|
73
|
-
"gso-max-size": {
|
|
74
|
-
"type": "integer",
|
|
75
|
-
"title": "通用分段卸载包的最大大小",
|
|
76
|
-
"description": "通用分段卸载包的最大大小",
|
|
77
|
-
"markdownDescription": "通用分段卸载包的最大大小",
|
|
78
|
-
"default": 65536
|
|
79
|
-
},
|
|
80
|
-
"inet4-address": {
|
|
81
|
-
"$ref": "#/definitions/patterns/ipv4",
|
|
82
|
-
"title": "DNS劫持IPv4地址()",
|
|
83
|
-
"description": "53端口",
|
|
84
|
-
"markdownDescription": "53端口"
|
|
85
|
-
},
|
|
86
|
-
"inet6-address": {
|
|
87
|
-
"$ref": "#/definitions/patterns/ipv6",
|
|
88
|
-
"title": "DNS劫持IPv6地址()",
|
|
89
|
-
"description": "53端口",
|
|
90
|
-
"markdownDescription": "53端口"
|
|
91
|
-
},
|
|
92
|
-
"strict-route": {
|
|
93
|
-
"type": "boolean",
|
|
94
|
-
"title": "严格路由",
|
|
95
|
-
"description": "它可以防止地址泄漏,并使DNS劫持在Android和使用systemd-resolved的Linux上工作,但你的设备将无法被其他设备访问",
|
|
96
|
-
"markdownDescription": "它可以防止地址泄漏,并使DNS劫持在Android和使用systemd-resolved的Linux上工作,但你的设备将无法被其他设备访问",
|
|
97
|
-
"default": false
|
|
98
|
-
},
|
|
99
|
-
"inet4-route-address": {
|
|
100
|
-
"$ref": "#/definitions/types/ipv4CIDRArray",
|
|
101
|
-
"title": "启用auto-route时,指定这些IPV4网段使用自定义路由",
|
|
102
|
-
"description": "启用auto-route时,指定这些IPV4网段使用自定义路由",
|
|
103
|
-
"markdownDescription": "启用`auto-route`时,指定这些IPV4网段使用自定义路由"
|
|
104
|
-
},
|
|
105
|
-
"inet6-route-address": {
|
|
106
|
-
"$ref": "#/definitions/types/ipv6CIDRArray",
|
|
107
|
-
"title": "启用auto-route时,指定这些IPV6网段使用自定义路由",
|
|
108
|
-
"description": "启用auto-route时,指定这些IPV6网段使用自定义路由",
|
|
109
|
-
"markdownDescription": "启用`auto-route`时,指定这些IPV6网段使用自定义路由"
|
|
110
|
-
},
|
|
111
|
-
"inet4-route-exclude-address": {
|
|
112
|
-
"$ref": "#/definitions/types/ipv4CIDRArray",
|
|
113
|
-
"title": "启用auto-route时,指定这些IPV4网段使用默认路由",
|
|
114
|
-
"description": "启用auto-route时,指定这些IPV4网段使用默认路由",
|
|
115
|
-
"markdownDescription": "启用`auto-route`时,指定这些IPV4网段使用默认路由"
|
|
116
|
-
},
|
|
117
|
-
"inet6-route-exclude-address": {
|
|
118
|
-
"$ref": "#/definitions/types/ipv6CIDRArray",
|
|
119
|
-
"title": "启用auto-route时,指定这些IPV6网段使用默认路由",
|
|
120
|
-
"description": "启用auto-route时,指定这些IPV6网段使用默认路由",
|
|
121
|
-
"markdownDescription": "启用`auto-route`时,指定这些IPV6网段使用默认路由"
|
|
122
|
-
},
|
|
123
|
-
"include-interface": {
|
|
124
|
-
"$ref": "#/definitions/types/stringArray",
|
|
125
|
-
"title": "包含被路由的接口",
|
|
126
|
-
"description": "与exclude-interface冲突",
|
|
127
|
-
"markdownDescription": "与`exclude-interface`冲突"
|
|
128
|
-
},
|
|
129
|
-
"exclude-interface": {
|
|
130
|
-
"$ref": "#/definitions/types/stringArray",
|
|
131
|
-
"title": "排除被路由的接口",
|
|
132
|
-
"description": "与include-interface冲突",
|
|
133
|
-
"markdownDescription": "与`include-interface`冲突"
|
|
134
|
-
},
|
|
135
|
-
"include-uid": {
|
|
136
|
-
"$ref": "#/definitions/types/stringArray",
|
|
137
|
-
"title": "包含被路由的Linux用户",
|
|
138
|
-
"description": "使其被Tun路由流量(需要启用auto-route)",
|
|
139
|
-
"markdownDescription": "使其被Tun路由流量(需要启用`auto-route`)"
|
|
140
|
-
},
|
|
141
|
-
"include-uid-range": {
|
|
142
|
-
"$ref": "#/definitions/types/stringArray",
|
|
143
|
-
"title": "包含被路由的Linux用户范围,使其被Tun路由流量",
|
|
144
|
-
"description": "格式: <UID起始>:<UID终止>(需要启用auto-route)",
|
|
145
|
-
"markdownDescription": "格式: <UID起始>:<UID终止>(需要启用`auto-route`)"
|
|
146
|
-
},
|
|
147
|
-
"exclude-uid": {
|
|
148
|
-
"$ref": "#/definitions/types/stringArray",
|
|
149
|
-
"title": "排除被路由的Linux用户",
|
|
150
|
-
"description": "使其避免被Tun路由流量",
|
|
151
|
-
"markdownDescription": "使其避免被Tun路由流量"
|
|
152
|
-
},
|
|
153
|
-
"exclude-uid-range": {
|
|
154
|
-
"$ref": "#/definitions/types/stringArray",
|
|
155
|
-
"title": "排除被路由的Linux用户范围,使其不被Tun路由流量",
|
|
156
|
-
"description": "格式: <UID起始>:<UID终止>(需要启用auto-route)",
|
|
157
|
-
"markdownDescription": "格式: <UID起始>:<UID终止>(需要启用`auto-route`)"
|
|
158
|
-
},
|
|
159
|
-
"include-android-user": {
|
|
160
|
-
"$ref": "#/definitions/types/stringArray",
|
|
161
|
-
"title": "包含被路由的Android用户",
|
|
162
|
-
"description": "使其被Tun路由流量(需要启用auto-route)",
|
|
163
|
-
"markdownDescription": "使其被Tun路由流量(需要启用`auto-route`)"
|
|
164
|
-
},
|
|
165
|
-
"include-package": {
|
|
166
|
-
"$ref": "#/definitions/types/stringArray",
|
|
167
|
-
"title": "包含被路由的Android应用包名",
|
|
168
|
-
"description": "使其被Tun路由流量(需要启用auto-route)",
|
|
169
|
-
"markdownDescription": "使其被Tun路由流量(需要启用`auto-route`)"
|
|
170
|
-
},
|
|
171
|
-
"exclude-package": {
|
|
172
|
-
"$ref": "#/definitions/types/stringArray",
|
|
173
|
-
"title": "排除被路由的Android应用包名",
|
|
174
|
-
"description": "使其避免被Tun路由流量",
|
|
175
|
-
"markdownDescription": "使其避免被Tun路由流量"
|
|
176
|
-
},
|
|
177
|
-
"endpoint-independent-nat": {
|
|
178
|
-
"type": "boolean",
|
|
179
|
-
"title": "启用独立于端点的NAT",
|
|
180
|
-
"description": "性能可能会略有下降,不建议在不需要的时候开启",
|
|
181
|
-
"markdownDescription": "性能可能会略有下降,不建议在不需要的时候开启",
|
|
182
|
-
"default": false
|
|
183
|
-
},
|
|
184
|
-
"udp-timeout": {
|
|
185
|
-
"type": "integer",
|
|
186
|
-
"title": "UDP NAT过期时间",
|
|
187
|
-
"description": "单位:s",
|
|
188
|
-
"markdownDescription": "单位:s",
|
|
189
|
-
"default": 300
|
|
190
|
-
},
|
|
191
|
-
"file-descriptor": {
|
|
192
|
-
"type": "integer",
|
|
193
|
-
"title": "文件描述符",
|
|
194
|
-
"description": "绑定到文件描述符对应设备接口(Unix-like系统)",
|
|
195
|
-
"markdownDescription": "绑定到文件描述符对应设备接口(Unix-like系统)"
|
|
196
|
-
},
|
|
197
|
-
"table-index": {
|
|
198
|
-
"type": "integer",
|
|
199
|
-
"title": "使用的路由表索引值",
|
|
200
|
-
"description": "docker子系统限制最高1023",
|
|
201
|
-
"markdownDescription": "docker子系统限制最高1023",
|
|
202
|
-
"default": 2022
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "object",
|
|
3
|
-
"title": "inbound-base",
|
|
4
|
-
"definitions": {
|
|
5
|
-
"types": { "$ref": "../../../definitions/types.json" },
|
|
6
|
-
"patterns": { "$ref": "../../../definitions/patterns.json" },
|
|
7
|
-
"enums": { "$ref": "../../../definitions/enums.json" }
|
|
8
|
-
},
|
|
9
|
-
"required": ["name"],
|
|
10
|
-
"properties": {
|
|
11
|
-
"name": {
|
|
12
|
-
"type": "string",
|
|
13
|
-
"title": "名称",
|
|
14
|
-
"description": "名称",
|
|
15
|
-
"markdownDescription": "名称"
|
|
16
|
-
},
|
|
17
|
-
"listen": {
|
|
18
|
-
"$ref": "#/definitions/patterns/ip",
|
|
19
|
-
"title": "监听地址",
|
|
20
|
-
"description": "监听地址",
|
|
21
|
-
"markdownDescription": "监听地址",
|
|
22
|
-
"default": "0.0.0.0"
|
|
23
|
-
},
|
|
24
|
-
"port": {
|
|
25
|
-
"$ref": "#/definitions/patterns/port",
|
|
26
|
-
"title": "监听端口",
|
|
27
|
-
"description": "监听端口",
|
|
28
|
-
"markdownDescription": "监听端口"
|
|
29
|
-
},
|
|
30
|
-
"rule": {
|
|
31
|
-
"type": "string",
|
|
32
|
-
"title": "出站规则",
|
|
33
|
-
"description": "使用子规则作为入站匹配规则出站",
|
|
34
|
-
"markdownDescription": "使用子规则作为入站匹配规则出站"
|
|
35
|
-
},
|
|
36
|
-
"proxy": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"title": "出站代理",
|
|
39
|
-
"description": "取值为proxy-groups,proxy的name",
|
|
40
|
-
"markdownDescription": "取值为proxy-groups,proxy的name"
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "object",
|
|
3
|
-
"title": "inbound-http",
|
|
4
|
-
"definitions": {
|
|
5
|
-
"types": { "$ref": "../../../definitions/types.json" },
|
|
6
|
-
"patterns": { "$ref": "../../../definitions/patterns.json" },
|
|
7
|
-
"enums": { "$ref": "../../../definitions/enums.json" },
|
|
8
|
-
"base-option": { "$ref": "./base.json" }
|
|
9
|
-
},
|
|
10
|
-
"allOf": [
|
|
11
|
-
{ "title": "入站基础配置", "$ref": "#/definitions/base-option" },
|
|
12
|
-
{
|
|
13
|
-
"type": "object",
|
|
14
|
-
"title": "http配置",
|
|
15
|
-
"properties": {}
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
}
|