From 41c21cebcd01c0a0757601648ef7e88ffd9b5a3f Mon Sep 17 00:00:00 2001 From: itdoginfo Date: Wed, 30 Apr 2025 23:43:36 +0300 Subject: [PATCH] Fixed validation for ws --- .../htdocs/luci-static/resources/view/podkop/podkop.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js index 69fd6ac..5fe0886 100644 --- a/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js +++ b/luci-app-podkop/htdocs/luci-static/resources/view/podkop/podkop.js @@ -224,9 +224,9 @@ function createConfigSection(section, map, network) { let params = new URLSearchParams(queryString.split('#')[0]); let type = params.get('type'); - const validTypes = ['tcp', 'raw', 'udp', 'grpc', 'http']; + const validTypes = ['tcp', 'raw', 'udp', 'grpc', 'http', 'ws']; if (!type || !validTypes.includes(type)) { - return _('Invalid VLESS URL: type must be one of tcp, raw, udp, grpc, http'); + return _('Invalid VLESS URL: type must be one of tcp, raw, udp, grpc, http, ws'); } let security = params.get('security');