% local api = require "luci.passwall2.api" local appname = api.appname local uci = api.uci local default_node_type = "" local shunt_rule_list = {} local node = api.uci_get_type("global", "node") if node then local node_type = api.uci_get_type_id(node, "type") local node_protocol = api.uci_get_type_id(node, "protocol") if (node_type == "Xray" or node_type == "sing-box") and node_protocol == "_shunt" then default_node_type = node_protocol local node_shunt_group = api.uci_get_type_id(node, "shunt_group") uci:foreach(appname, "shunt_rules", function(e) if e[".name"] and e.remarks and e.group == node_shunt_group then shunt_rule_list[#shunt_rule_list + 1] = e end end) end end -%>
<%:Enter share links, one per line. Subscription links are not supported!%>