mirror of
https://github.com/fw876/helloworld.git
synced 2026-12-05 16:02:13 +00:00
luci-app-ssr-plus: fix parsing ss server_port
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user