mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-09 21:17:03 +03:00
feat: add vless flow validation for xtls-rprx-vision-udp443
This commit is contained in:
@@ -96,6 +96,14 @@ export function validateVlessUrl(url: string): ValidationResult {
|
||||
};
|
||||
}
|
||||
|
||||
if (params.flow === 'xtls-rprx-vision-udp443') {
|
||||
return {
|
||||
valid: false,
|
||||
message:
|
||||
'Invalid VLESS URL: flow xtls-rprx-vision-udp443 does not supported',
|
||||
};
|
||||
}
|
||||
|
||||
return { valid: true, message: _('Valid') };
|
||||
} catch (_e) {
|
||||
return { valid: false, message: _('Invalid VLESS URL: parsing failed') };
|
||||
|
||||
Reference in New Issue
Block a user