luci-app-passwall: sync upstream

last commit: bcdf0ebc2e
This commit is contained in:
sbwml 2024-08-25 19:00:09 +08:00
parent 6f07fa592c
commit 5d06c7f2e2

View File

@ -515,6 +515,7 @@ local function processData(szType, content, add_mode, add_from)
--ss://2022-blake3-aes-256-gcm:YctPZ6U7xPPcU%2Bgp3u%2B0tx%2FtRizJN9K8y%2BuKlW2qjlI%3D@192.168.100.1:8888#Example3 --ss://2022-blake3-aes-256-gcm:YctPZ6U7xPPcU%2Bgp3u%2B0tx%2FtRizJN9K8y%2BuKlW2qjlI%3D@192.168.100.1:8888#Example3
--ss://2022-blake3-aes-256-gcm:YctPZ6U7xPPcU%2Bgp3u%2B0tx%2FtRizJN9K8y%2BuKlW2qjlI%3D@192.168.100.1:8888/?plugin=v2ray-plugin%3Bserver#Example3 --ss://2022-blake3-aes-256-gcm:YctPZ6U7xPPcU%2Bgp3u%2B0tx%2FtRizJN9K8y%2BuKlW2qjlI%3D@192.168.100.1:8888/?plugin=v2ray-plugin%3Bserver#Example3
--ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTp0ZXN0@xxxxxx.com:443?type=ws&path=%2Ftestpath&host=xxxxxx.com&security=tls&fp=&alpn=h3%2Ch2%2Chttp%2F1.1&sni=xxxxxx.com#test-1%40ss --ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTp0ZXN0@xxxxxx.com:443?type=ws&path=%2Ftestpath&host=xxxxxx.com&security=tls&fp=&alpn=h3%2Ch2%2Chttp%2F1.1&sni=xxxxxx.com#test-1%40ss
--ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTp4eHh4eHhAeHh4eC54eHh4eC5jb206NTYwMDE#Hong%20Kong-01
local idx_sp = 0 local idx_sp = 0
local alias = "" local alias = ""
@ -549,7 +550,7 @@ local function processData(szType, content, add_mode, add_from)
info = info:sub(1, find_index - 1) info = info:sub(1, find_index - 1)
end end
local hostInfo = split(UrlDecode(info), "@") local hostInfo = split(base64Decode(info), "@")
if hostInfo and #hostInfo > 0 then if hostInfo and #hostInfo > 0 then
local host_port = hostInfo[#hostInfo] local host_port = hostInfo[#hostInfo]
-- [2001:4860:4860::8888]:443 -- [2001:4860:4860::8888]:443