Allow customizing TUN DNS mode and hijack interface DNS by default

This commit is contained in:
世界
2026-05-02 18:36:58 +08:00
parent 59ad93ef52
commit 84eb7a103f
15 changed files with 184 additions and 60 deletions
+2 -6
View File
@@ -89,13 +89,9 @@ Example:
],
"rules": [
{
"action": "evaluate",
"preferred_by": "hosts",
"action": "route",
"server": "hosts"
},
{
"match_response": true,
"ip_accept_any": true,
"action": "respond"
}
]
}
+2 -6
View File
@@ -89,13 +89,9 @@ hosts 文件路径列表。
],
"rules": [
{
"action": "evaluate",
"preferred_by": "hosts",
"action": "route",
"server": "hosts"
},
{
"match_response": true,
"ip_accept_any": true,
"action": "respond"
}
]
}
+2 -6
View File
@@ -61,13 +61,9 @@ If not enabled, `NXDOMAIN` will be returned for requests that do not match searc
],
"rules": [
{
"action": "evaluate",
"preferred_by": "resolved",
"action": "route",
"server": "resolved"
},
{
"match_response": true,
"ip_accept_any": true,
"action": "respond"
}
]
}
+2 -6
View File
@@ -60,13 +60,9 @@ icon: material/new-box
],
"rules": [
{
"action": "evaluate",
"preferred_by": "resolved",
"action": "route",
"server": "resolved"
},
{
"match_response": true,
"ip_accept_any": true,
"action": "respond"
}
]
}
+2 -6
View File
@@ -73,13 +73,9 @@ Default resolvers are not consulted for single-label queries regardless of `acce
],
"rules": [
{
"action": "evaluate",
"preferred_by": "ts",
"action": "route",
"server": "ts"
},
{
"match_response": true,
"ip_accept_any": true,
"action": "respond"
}
]
}
@@ -73,13 +73,9 @@ icon: material/new-box
],
"rules": [
{
"action": "evaluate",
"preferred_by": "ts",
"action": "route",
"server": "ts"
},
{
"match_response": true,
"ip_accept_any": true,
"action": "respond"
}
]
}