luci-app-ssr-plus: fix parsing ss server_port

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen committed 2021-08-09 21:29:59 +08:00
1 parent 5790c633f3
commit 6d9dc69c8d
2 files changed
+2 -2

No files matched your search

@@ -109,7 +109,7 @@ function import_ssr_url(btn, urlname, sid) {
var temp = url0.substr(sipIndex + 1).split("/?");
var serverInfo = temp[0].split(":");
var server = serverInfo[0];
var port = serverInfo[1];
var port = serverInfo[1].replace("/","");
var method, password, plugin, pluginOpts;
if (temp[1]) {
var pluginInfo = decodeURIComponent(temp[1]);
@@ -247,7 +247,7 @@ local function processData(szType, content)
end
end
else
result.server_port = host[2]
result.server_port = host[2]:gsub("/","")
end
if checkTabValue(encrypt_methods_ss)[method] then
result.encrypt_method_ss = method