mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-13 00:25:04 +03:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user