mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-02 23:53:56 +08:00
🗽 Sync 2026-10-23 00:46:23
This commit is contained in:
1 parent
6032a57538
commit
2b29b0c4e1
112 files changed
+1859
-6208
No files matched your search
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=luci-app-passwall
|
||||
PKG_VERSION:=26.10.22
|
||||
PKG_RELEASE:=345
|
||||
PKG_RELEASE:=346
|
||||
PKG_PO_VERSION:=$(PKG_VERSION)
|
||||
|
||||
PKG_CONFIG_DEPENDS:= \
|
||||
|
||||
@@ -261,8 +261,9 @@ function get_redir_log()
|
||||
if id and id ~= "default" then
|
||||
local global_node = uci_get("@global[0]", "node") or "nil"
|
||||
local acl_node = uci_get(id, "node") or "nil"
|
||||
local use_global_config = uci_get(id, "use_global_config") == "1"
|
||||
local global_enabled = uci_get("@global[0]", "enabled") == "1"
|
||||
if acl_node == global_node and global_enabled then
|
||||
if (use_global_config or acl_node == global_node) and global_enabled then
|
||||
path = api.TMP_PATH .. "/acl/default"
|
||||
if uci_get("@global[0]", "log_node") ~= "1" then
|
||||
alert("The access control node is the same as the global node. Please enable global logging.")
|
||||
@@ -273,7 +274,8 @@ function get_redir_log()
|
||||
end
|
||||
end
|
||||
|
||||
if fs.access(path .. "/" .. name .. ".log") then
|
||||
path = path .. "/" .. name .. ".log"
|
||||
if fs.access(path) then
|
||||
http.prepare_content("text/plain; charset=utf-8")
|
||||
http.write(luci.sys.exec("tail -n 5000 " .. util.shellquote(path)))
|
||||
else
|
||||
@@ -299,9 +301,11 @@ function get_chinadns_log()
|
||||
if flag ~= "default" then
|
||||
local global_node = uci_get("@global[0]", "node") or "nil"
|
||||
local acl_node = uci_get(flag, "node") or "nil"
|
||||
if acl_node == global_node and uci_get("@global[0]", "enabled") == "1" then
|
||||
local use_global_config = uci_get(flag, "use_global_config") == "1"
|
||||
if (use_global_config or acl_node == global_node) and uci_get("@global[0]", "enabled") == "1" then
|
||||
path = api.TMP_PATH .. "/acl/default/chinadns_ng.log"
|
||||
if uci_get("@global[0]", "log_chinadns_ng") ~= "1" then
|
||||
http.prepare_content("text/html; charset=utf-8")
|
||||
http.write(string.format("<script>alert('%s');window.close();</script>", i18n.translate("The access control node is the same as the global node. Please enable global logging.")))
|
||||
return
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user