From c1bba8744786f5282c3c21a692397d0ca01ee907 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 20 Aug 2026 03:58:15 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=8B=20Sync=202026-08-20=2003:58:15?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dnsproxy/Makefile | 4 +- luci-app-passwall/Makefile | 2 +- .../cbi/passwall/server/type/1_sing-box.lua | 4 +- .../model/cbi/passwall/server/type/2_xray.lua | 4 +- luci-app-passwall2/Makefile | 2 +- luci-app-passwall2/luasrc/passwall2/api.lua | 1 + luci-app-ssr-plus/Makefile | 2 +- .../luasrc/model/cbi/shadowsocksr/client.lua | 30 +- luci-app-ssr-plus/po/templates/ssr-plus.pot | 15 +- luci-app-ssr-plus/po/zh_Hans/ssr-plus.po | 15 +- .../root/etc/init.d/shadowsocksr | 88 ++- .../usr/share/shadowsocksr/gen_config.lua | 21 +- mosdns/Makefile | 2 +- .../211-feat-add-query-log-support.patch | 661 ++++++++++++++++++ ...-file-padded-with-null-bytes-after-e.patch | 38 + 15 files changed, 835 insertions(+), 54 deletions(-) create mode 100644 mosdns/patches/211-feat-add-query-log-support.patch create mode 100644 mosdns/patches/212-fix-mlog-fix-log-file-padded-with-null-bytes-after-e.patch diff --git a/dnsproxy/Makefile b/dnsproxy/Makefile index 42692311..75eaadd1 100644 --- a/dnsproxy/Makefile +++ b/dnsproxy/Makefile @@ -5,8 +5,8 @@ include $(TOPDIR)/rules.mk PKG_NAME:=dnsproxy -PKG_VERSION:=0.84.0 -PKG_RELEASE:=16 +PKG_VERSION:=0.84.1 +PKG_RELEASE:=17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/AdguardTeam/dnsproxy/tar.gz/v$(PKG_VERSION)? diff --git a/luci-app-passwall/Makefile b/luci-app-passwall/Makefile index 3e16f047..0a6580b2 100644 --- a/luci-app-passwall/Makefile +++ b/luci-app-passwall/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-passwall PKG_VERSION:=26.8.19 -PKG_RELEASE:=230 +PKG_RELEASE:=231 PKG_PO_VERSION:=$(PKG_VERSION) PKG_CONFIG_DEPENDS:= \ diff --git a/luci-app-passwall/luasrc/model/cbi/passwall/server/type/1_sing-box.lua b/luci-app-passwall/luasrc/model/cbi/passwall/server/type/1_sing-box.lua index ac8b945b..50236d89 100644 --- a/luci-app-passwall/luasrc/model/cbi/passwall/server/type/1_sing-box.lua +++ b/luci-app-passwall/luasrc/model/cbi/passwall/server/type/1_sing-box.lua @@ -320,7 +320,7 @@ o:depends({ protocol = "tuic" }) o:depends({ protocol = "hysteria2" }) o.validate = function(self, value, t) if value and value ~= "" then - if not fs.access(value) then + if not api.fs.access(value) then return nil, translate("Can't find this file!") else return value @@ -339,7 +339,7 @@ o:depends({ protocol = "tuic" }) o:depends({ protocol = "hysteria2" }) o.validate = function(self, value, t) if value and value ~= "" then - if not fs.access(value) then + if not api.fs.access(value) then return nil, translate("Can't find this file!") else return value diff --git a/luci-app-passwall/luasrc/model/cbi/passwall/server/type/2_xray.lua b/luci-app-passwall/luasrc/model/cbi/passwall/server/type/2_xray.lua index 2e1b90bc..a27e518c 100644 --- a/luci-app-passwall/luasrc/model/cbi/passwall/server/type/2_xray.lua +++ b/luci-app-passwall/luasrc/model/cbi/passwall/server/type/2_xray.lua @@ -259,7 +259,7 @@ o:depends({ tls = true, reality = false }) o:depends({ protocol = "hysteria2"}) o.validate = function(self, value, t) if value and value ~= "" then - if not fs.access(value) then + if not api.fs.access(value) then return nil, translate("Can't find this file!") else return value @@ -275,7 +275,7 @@ o:depends({ tls = true, reality = false }) o:depends({ protocol = "hysteria2"}) o.validate = function(self, value, t) if value and value ~= "" then - if not fs.access(value) then + if not api.fs.access(value) then return nil, translate("Can't find this file!") else return value diff --git a/luci-app-passwall2/Makefile b/luci-app-passwall2/Makefile index 16e3f412..adeb3c42 100644 --- a/luci-app-passwall2/Makefile +++ b/luci-app-passwall2/Makefile @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-passwall2 PKG_VERSION:=26.8.17 -PKG_RELEASE:=91 +PKG_RELEASE:=92 PKG_PO_VERSION:=$(PKG_VERSION) PKG_CONFIG_DEPENDS:= \ diff --git a/luci-app-passwall2/luasrc/passwall2/api.lua b/luci-app-passwall2/luasrc/passwall2/api.lua index 25e68be2..755bd2e6 100644 --- a/luci-app-passwall2/luasrc/passwall2/api.lua +++ b/luci-app-passwall2/luasrc/passwall2/api.lua @@ -1723,6 +1723,7 @@ function apply_redirect(m) end end else + uci:revert(c_config .. "_redirect") sys.call("/bin/rm -f " .. tmp_uci_file) end end diff --git a/luci-app-ssr-plus/Makefile b/luci-app-ssr-plus/Makefile index 0913ece2..23a8463b 100644 --- a/luci-app-ssr-plus/Makefile +++ b/luci-app-ssr-plus/Makefile @@ -4,7 +4,7 @@ LUCI_TITLE:=luci-app-ssr-plus LUCI_PKGARCH:=all PKG_NAME:=luci-app-ssr-plus PKG_VERSION:=196 -PKG_RELEASE:=59 +PKG_RELEASE:=60 PKG_CONFIG_DEPENDS:= \ CONFIG_PACKAGE_$(PKG_NAME)_Iptables_Transparent_Proxy \ diff --git a/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client.lua b/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client.lua index d830624b..1aea1be9 100644 --- a/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client.lua +++ b/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client.lua @@ -183,10 +183,10 @@ if is_finded("chinadns-ng") then o:depends("pdnsd_enable", "6") o.default = "8.8.4.4:53" o.description = translate( - "" + "" ) o = s:option(ListValue, "chinadns_ng_proto", translate("ChinaDNS-NG query protocol")) @@ -209,13 +209,33 @@ if is_finded("chinadns-ng") then o:value("1.2.4.8:53", translate("CNNIC SDNS (1.2.4.8)")) o:depends({pdnsd_enable = "6", run_mode = "router"}) o.default = "wan" - o.description = translate("Custom DNS Server format as IP:PORT (default: disabled)") + o.description = translate( + "" + ) o.validate = function(self, value, section) if (section and value) then if value == "none" or value == "wan" or value == "wan_114" then return value end + if string.find(value, ",") then + local parts = {} + for part in string.gmatch(value, "[^,]+") do + part = part:gsub("^%s*", ""):gsub("%s*$", "") + if not validation.ip4addrport(part) then + return nil, translate("Expecting: %s"):format(translate("valid address:port (comma separated)")) + end + table.insert(parts, part) + end + if #parts == 0 then + return nil, translate("Expecting: %s"):format(translate("valid address:port")) + end + return table.concat(parts, ",") + end + if validation.ip4addrport(value) then return value end diff --git a/luci-app-ssr-plus/po/templates/ssr-plus.pot b/luci-app-ssr-plus/po/templates/ssr-plus.pot index 6bb54013..6a1451bd 100644 --- a/luci-app-ssr-plus/po/templates/ssr-plus.pot +++ b/luci-app-ssr-plus/po/templates/ssr-plus.pot @@ -87,6 +87,7 @@ msgstr "" #: applications/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-config.lua:1667 #: applications/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-config.lua:1680 #: applications/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client.lua:186 +#: applications/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client.lua:213 msgid "