feat(inbounds): TUN adapter type and auto-system options

xray-core 26.9 added three TUN settings the inbound form could not set:

- desc, the tunnel type a new Wintun adapter is created with on Windows.
  The settings schema did not list it, so the parse stripped it and a
  value entered as JSON vanished on the next save;
- autoSystemDnsToGateway (Linux), which points systemd-resolved at the
  TUN gateway;
- autoSystemWfpBlockLeak (Windows), whose dns / misconfigtun filters keep
  traffic from leaking past the TUN.

The tooltips name the platform each one acts on and what it needs, since
the core refuses to build or start the TUN otherwise.
This commit is contained in:
MHSanaei
2026-10-11 15:40:46 +02:00
parent b6c859f5b9
commit ef4bda4e06
17 changed files with 173 additions and 15 deletions
+7 -1
View File
@@ -722,7 +722,13 @@
"masque": {
"addressPool": "アドレスプール",
"addressPoolDesc": "トンネルのアドレスはこれらのプレフィックスから割り当てられます(IPv4 と IPv6 をそれぞれ最大 1 つ)。"
}
},
"tunDesc": "アダプターの種類",
"tunDescTooltip": "Windows のみ:新しく作成する Wintun アダプターのトンネル種別。空欄の場合は Wintun。",
"autoSystemDnsToGateway": "システム DNS をゲートウェイへ",
"autoSystemDnsToGatewayTooltip": "Linux のみ:systemd-resolved を TUN のゲートウェイに向け、システムの名前解決を Xray 経由にします。ゲートウェイが必要で、失敗すると TUN は起動しません。",
"autoSystemWfpBlockLeak": "リーク遮断 (WFP)",
"autoSystemWfpBlockLeakTooltip": "Windows のみ(自動システムルートと併用):dns は DNS を TUN 内に留め(DNS サーバーが必要)、misconfigtun は TUN へのルートがない IP バージョンを遮断します。"
},
"info": {
"mode": "モード",