Skip to content

Commit e7751b2

Browse files
committed
feat: add direct-nameserver and direct-nameserver-follow-policy in dns section
1 parent 4ec94b2 commit e7751b2

File tree

5 files changed

+30
-6
lines changed

5 files changed

+30
-6
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## v1.18.10
2+
3+
### Changes
4+
5+
### Bugs Fixes
6+
7+
- 修复: `skip-auth-prefixes``lan-allowed-ips``lan-disallowed-ips` 类型错误
8+
- 新增: DNS 新增 `direct-nameserver``direct-nameserver-follow-policy` 配置项
9+
10+
---
11+
112
## v1.18.9
213

314
### Changes

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "meta-json-schema",
3-
"version": "1.18.9",
3+
"version": "1.18.10",
44
"description": "JSON Schema for Clash Meta",
55
"keywords": [
66
"clash",

src/modules/config/dns.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,19 @@
172172
"title": "代理节点DNS解析服务器",
173173
"description": "用于解析代理节点的域名",
174174
"markdownDescription": "用于解析代理节点的域名"
175+
},
176+
"direct-nameserver": {
177+
"$ref": "#/definitions/types/stringArray",
178+
"title": "direct出口DNS解析服务器",
179+
"description": "用于解析direct出口的域名",
180+
"markdownDescription": "用于解析direct出口的域名"
181+
},
182+
"direct-nameserver-follow-policy": {
183+
"type": "boolean",
184+
"title": "是否遵循DNS解析服务器策略",
185+
"description": "是否遵循nameserver-policy",
186+
"markdownDescription": "是否遵循`nameserver-policy`",
187+
"default": false
175188
}
176189
},
177190
"allOf": [

src/modules/config/inbound.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,20 @@
5757
"default": false
5858
},
5959
"skip-auth-prefixes": {
60-
"$ref": "#/definitions/patterns/ipCIDR",
60+
"$ref": "#/definitions/types/ipCIDRArray",
6161
"title": "允许跳过验证的IP段",
6262
"description": "允许跳过验证的IP段",
6363
"markdownDescription": "允许跳过验证的IP段"
6464
},
6565
"lan-allowed-ips": {
66-
"$ref": "#/definitions/patterns/ipCIDR",
66+
"$ref": "#/definitions/types/ipCIDRArray",
6767
"title": "允许连接的IP地址段",
6868
"description": "需要启用allow-lan",
6969
"markdownDescription": "需要启用`allow-lan`",
7070
"default": ["0.0.0.0/0", "::/0"]
7171
},
7272
"lan-disallowed-ips": {
73-
"$ref": "#/definitions/patterns/ipCIDR",
73+
"$ref": "#/definitions/types/ipCIDRArray",
7474
"title": "不允许连接的IP地址段",
7575
"description": "需要启用allow-lan(优先级高于lan-allowed-ips)",
7676
"markdownDescription": "需要启用`allow-lan`(优先级高于`lan-allowed-ips`)"

0 commit comments

Comments
 (0)