mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-10-11 16:58:22 +03:00
Xray-core: Add Lua script for dns and routing
https://github.com/XTLS/Xray-core/pull/6823
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user