mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-09-21 14:42:19 +07:00
feat(frontend): add targetStrategy field to the outbound editor
Xray-core added a top-level targetStrategy to OutboundObject that controls how the destination domain is resolved before dialing (AsIs/UseIP*/ForceIP*, any protocol). The panel neither offered a control for it nor preserved the key across the modal's JSON round trip, so hand-written values were silently dropped on save. The form now carries targetStrategy next to sendThrough as a select of the 11 canonical values; the adapter normalizes wire values to canonical case (the core matches case-insensitively) and omits the key when unset. Freedom settings additionally read the new settings-level targetStrategy with domainStrategy as fallback, mirroring the core, while still emitting the legacy domainStrategy key so configs keep working on older cores.
This commit is contained in:
@@ -1549,6 +1549,7 @@
|
||||
"localIpPlaceholder": "本地 IP",
|
||||
"dialerProxyPlaceholder": "选择要串联的出站",
|
||||
"dialerProxyHint": "让此出站通过另一个出站(按标签)拨号,以建立代理链。留空则直接连接。",
|
||||
"targetStrategyHint": "连接前如何解析目标域名:AsIs(默认)原样发送,UseIP… 解析失败时回退,ForceIP… 必须解析成功。",
|
||||
"addressRequired": "地址为必填项",
|
||||
"portRequired": "端口为必填项",
|
||||
"optional": "可选",
|
||||
@@ -1618,6 +1619,7 @@
|
||||
"accountInfo": "帐户信息",
|
||||
"outboundStatus": "出站状态",
|
||||
"sendThrough": "发送通过",
|
||||
"targetStrategy": "目标解析策略",
|
||||
"test": "测试",
|
||||
"testResult": "测试结果",
|
||||
"testing": "正在测试连接...",
|
||||
|
||||
Reference in New Issue
Block a user