feat(xray): offer the new TUN autoSystemWfpBlockLeak values

xray-core 26.11.9 (#7315) added "all", "allexceptlan", "tcp", "udp" and
"icmp", bare ports, port ranges and a CIDR prefix in front of any value.
The save-time check already runs the core's own parser, so the typed forms
are accepted as they are; the form now lists the new named values and the
tooltip explains them in all 14 locales.
This commit is contained in:
Sanaei
2026-11-12 19:10:19 +01:00
parent a748f799c7
commit bf2d0ada8b
15 changed files with 25 additions and 19 deletions
@@ -47,12 +47,18 @@ function StringList({ name, label, tooltip, placeholder }: StringListProps) {
);
}
// Named autoSystemWfpBlockLeak values; xray-core 26.10.31 also takes typed "tcp/<port>" or "udp/<port>".
// Named autoSystemWfpBlockLeak values of xray-core 26.11.9 (#7315); ports, port ranges
// and a CIDR prefix ("1.1.1.0/24:53") are typed, and the core validates them at save.
const WFP_BLOCK_LEAK_OPTIONS = [
{ value: 'dns', label: 'dns' },
{ value: 'windnsclient', label: 'windnsclient' },
{ value: 'misconfigtun', label: 'misconfigtun' },
];
'all',
'allexceptlan',
'dns',
'windnsclient',
'misconfigtun',
'tcp',
'udp',
'icmp',
].map((value) => ({ value, label: value }));
export default function TunFields() {
const { t } = useTranslation();