From c99634af74cec0acd37789a37cbb8c9394b09ade Mon Sep 17 00:00:00 2001 From: gitea-action Date: Sun, 29 Dec 2024 16:00:16 +0800 Subject: [PATCH] luci-app-passwall: sync upstream last commit: https://github.com/xiaorouji/openwrt-passwall/commit/814261eaa759393da55f732b4ad02017a99d45a4 --- .../passwall/node_list/link_share_man.htm | 43 ++++++++++++------- .../root/usr/share/passwall/subscribe.lua | 2 +- 2 files changed, 28 insertions(+), 17 deletions(-) diff --git a/luci-app-passwall/luasrc/view/passwall/node_list/link_share_man.htm b/luci-app-passwall/luasrc/view/passwall/node_list/link_share_man.htm index 89eced5b8..7c454aff2 100644 --- a/luci-app-passwall/luasrc/view/passwall/node_list/link_share_man.htm +++ b/luci-app-passwall/luasrc/view/passwall/node_list/link_share_man.htm @@ -1,12 +1,24 @@ <%+cbi/valueheader%> <% local api = require "luci.passwall.api" +local appname = 'passwall' +local uci = api.libuci +local ss_type = uci:get(appname, "@global_subscribe[0]", "ss_type") or "shadowsocks-libev" +local trojan_type = uci:get(appname, "@global_subscribe[0]", "trojan_type") or "trojan-plus" +local vmess_type = uci:get(appname, "@global_subscribe[0]", "vmess_type") or "xray" +local vless_type = uci:get(appname, "@global_subscribe[0]", "vless_type") or "xray" +local hysteria2_type = uci:get(appname, "@global_subscribe[0]", "hysteria2_type") or "hysteria2" -%>