Xray-core: Add Lua script for dns and routing

https://github.com/XTLS/Xray-core/pull/6823
This commit is contained in:
Meow
2026-10-11 09:55:19 +08:00
parent 4c8f3b2b7e
commit f179efd35d
48 changed files with 4950 additions and 0 deletions
+5
View File
@@ -15,6 +15,7 @@ For a more detailed analysis of the routing function: [Analysis of Routing (Part
"routing": {
"domainStrategy": "AsIs",
"rules": [],
"script": "",
"balancers": []
}
}
@@ -44,6 +45,10 @@ For each connection, routing will judge these rules from top to bottom. When the
When no rule is matched, traffic is sent via the first outbound by default.
:::
> `script`: string
Path to a Lua script file; defaults to an empty string. When set, the Lua script takes over outbound selection. See the [Routing Scripts guide](../development/lua/guide/routing.md) for usage.
> `balancers`: \[ [BalancerObject](#balancerobject) \]
An array, where each item is a load balancer configuration.