mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-09-24 08:12: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