mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-14 00:55:01 +03:00
feat(tls): add a dynamic DoH helper for echConfigList, with CDN guidance (#6869)
echConfigList already accepted Xray's dynamic form, target domain + DoH URL, but nothing in the inbound or host forms explained or built it. A helper now builds that value from presets or a custom domain and resolver, accepts only the schemes Xray dials (https, h2c, udp; scheme case normalised), warns that a key generated locally does not work behind a CDN, and asks before overwriting local ECH keys. The helper's controls carry accessible labels, and the resolver list holds only identified public resolvers.
This commit is contained in:
@@ -611,7 +611,6 @@
|
||||
"usageOption": "使用選項",
|
||||
"buildChain": "建立憑證鏈",
|
||||
"echKey": "ECH key",
|
||||
"echConfig": "ECH 設定",
|
||||
"pinnedPeerCertSha256": "釘選對端憑證 SHA-256",
|
||||
"pinnedPeerCertSha256Tip": "對端憑證的 SHA-256 雜湊(十六進位字串,如 e8e2d3…),以逗號分隔。僅面板使用 — 不寫入伺服器的 xray 設定,但會包含在分享連結中,以便用戶端釘選憑證。",
|
||||
"pinnedPeerCertSha256Placeholder": "十六進位雜湊,以逗號分隔",
|
||||
@@ -663,6 +662,36 @@
|
||||
"getNewSeed": "取得新 Seed",
|
||||
"echSockopt": "ECH Sockopt",
|
||||
"echSockoptTip": "Xray 用來取得 ECH 設定清單的連線之通訊端選項(例如讓查詢透過 dialerProxy 出站)。停用則使用預設值。",
|
||||
"echCdnWarningTitle": "在本機產生的 ECH 金鑰僅適用於直接連線",
|
||||
"echCdnWarningBody": "由「取得新 ECH 憑證」產生的金鑰組,只有在用戶端直接連線到這台 VPS 時才有效。若入站是透過 Cloudflare CDN 代理(橘色雲朵後的 VLESS + xhttp/WS),Cloudflare 會以自己的 ECH 金鑰終止外層 TLS 並定期輪換,因此本機金鑰必定無法完成握手。請改用動態 ECH 輔助器。",
|
||||
"echDynamicTitle": "Cloudflare 動態 ECH(橘色雲朵後方亦可使用)",
|
||||
"echPresetLabel": "預設組合",
|
||||
"echPresetOtherDomains": "其他 ECH 目標網域",
|
||||
"echPresetAdvanced": "自訂組合…",
|
||||
"echDynamicIntro": "以用戶端動態查詢(目標網域 + DoH 解析器)填入 ECH 設定清單。用戶端每次連線時都會向解析器查詢該網域的 HTTPS 記錄,因此永遠能取得目前的 ECH 金鑰,包括 Cloudflare 輪換過的金鑰。",
|
||||
"echDynamicDomain": "ECH 目標網域",
|
||||
"echDynamicDoh": "DoH 解析器",
|
||||
"echDomainAuto": "自動 — 依節點的 SNI 解析 ECH 記錄",
|
||||
"echDynamicApply": "套用至 ECH 設定清單",
|
||||
"echDynamicCustom": "自訂 URL…",
|
||||
"echDynamicInvalid": "請輸入有效的網域與解析器 URL(僅支援 https、h2c、udp)以產生此值。",
|
||||
"echDynamicUnsupportedScheme": "Xray 僅支援透過 https://、h2c:// 或 udp:// 解析 ECH 設定,此位址永遠不會回應。",
|
||||
"echDynamicPlaceholder": "cloudflare-ech.com+https://dns.alidns.com/dns-query",
|
||||
"echDynamicOverwriteTitle": "此入站已有在本機產生的 ECH 金鑰組",
|
||||
"echDynamicOverwriteBody": "在 CDN 後方這組金鑰永遠不會被使用:CDN 會終止 TLS 握手。套用動態值將取代 ECH 設定清單並清除本機 ECH 金鑰。",
|
||||
"echDynamicOverwriteConfirm": "取代並清除本機金鑰",
|
||||
"echExistingNotDynamic": "此 ECH 設定清單並非動態格式;填入值將會覆寫你手動設定的內容。",
|
||||
"echDohGroup": {
|
||||
"china": "中國大陸(可從 GFW 後方連線)",
|
||||
"global": "全球",
|
||||
"europe": "歐洲",
|
||||
"udp": "一般 DNS(udp://)"
|
||||
},
|
||||
"echRecommended": "推薦",
|
||||
"echMainlandAdvisory": "中國大陸的解析器需要一個 HTTPS 記錄帶有 ECH 的目標網域;儲存前請先驗證此組合。",
|
||||
"echConfigList": "ECH 設定清單",
|
||||
"echConfigListHint": "隨分享連結與訂閱傳送給用戶端。可接受本機的 ECHConfigList(來自下方按鈕),或動態表單的 domain+DoH URL。",
|
||||
"echKeyHint": "僅供直接連線使用 — 若入站位於 CDN 後方,請留空。",
|
||||
"curvePreferences": "曲線偏好",
|
||||
"curvePreferencesTip": "依偏好順序限制伺服器提供的 TLS 金鑰交換曲線(例如 X25519MLKEM768、X25519)。留空則使用 Xray-core 預設值。",
|
||||
"masterKeyLog": "主金鑰日誌",
|
||||
@@ -2361,7 +2390,6 @@
|
||||
"pins": "釘選憑證 SHA-256",
|
||||
"verifyPeerCertByName": "依名稱驗證對端憑證",
|
||||
"allowInsecure": "允許不安全連線",
|
||||
"echConfigList": "ECH 設定清單",
|
||||
"muxParams": "Mux",
|
||||
"sockoptParams": "Sockopt",
|
||||
"finalMask": "Final Mask",
|
||||
|
||||
Reference in New Issue
Block a user