diff --git a/.github/diy/patches/luci-app-passwall2.patch b/.github/diy/patches/luci-app-passwall2.patch index ace0c1e0..b0b34ce1 100644 --- a/.github/diy/patches/luci-app-passwall2.patch +++ b/.github/diy/patches/luci-app-passwall2.patch @@ -108,7 +108,7 @@ +end + function reset_config() - uci:revert(appname) + uci:revert(c_config) luci.sys.call("echo '' > /tmp/log/passwall2.log") --- a/luci-app-passwall2/luasrc/model/cbi/passwall2/client/global.lua @@ -116,8 +116,8 @@ @@ -387,5 +387,6 @@ footer.global_cfgid = global_cfgid footer.shunt_list = api.jsonc.stringify(shunt_list) - m:append(footer) -+m:append(Template(appname .. "/global/status_bottom")) + m:appendTemplate("/global/footer", {shunt_list = api.jsonc.stringify(shunt_list)}) ++m:appendTemplate(Template("/global/status_bottom")) return api.return_map(m)