mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-10-31 05:25:13 +08:00
update 2026-05-26 22:56:51
This commit is contained in:
1 parent
9c63ae0f4f
commit
3a367bb3e8
5 files changed
+13
-5
No files matched your search
+2
-2
@@ -5,10 +5,10 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=daed
|
PKG_NAME:=daed
|
||||||
PKG_VERSION:=2026.05.22
|
PKG_VERSION:=2026.05.26
|
||||||
DAED_VERSION:=daed-4d6a433
|
DAED_VERSION:=daed-4d6a433
|
||||||
WING_VERSION:=wing-dc50308
|
WING_VERSION:=wing-dc50308
|
||||||
CORE_VERSION:=core-44f8f0d
|
CORE_VERSION:=core-ab16181
|
||||||
WING_HASH_SHORT:=$(shell echo $(WING_VERSION) | cut -d- -f2)
|
WING_HASH_SHORT:=$(shell echo $(WING_VERSION) | cut -d- -f2)
|
||||||
CORE_HASH_SHORT:=$(shell echo $(CORE_VERSION) | cut -d- -f2)
|
CORE_HASH_SHORT:=$(shell echo $(CORE_VERSION) | cut -d- -f2)
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|||||||
@@ -870,6 +870,7 @@ function restore_backup()
|
|||||||
fp:write(decoded)
|
fp:write(decoded)
|
||||||
fp:close()
|
fp:close()
|
||||||
if chunk_index + 1 == total_chunks then
|
if chunk_index + 1 == total_chunks then
|
||||||
|
uci:revert(appname)
|
||||||
luci.sys.call("echo '' > /tmp/log/passwall.log")
|
luci.sys.call("echo '' > /tmp/log/passwall.log")
|
||||||
api.log(" * PassWall 配置文件上传成功…")
|
api.log(" * PassWall 配置文件上传成功…")
|
||||||
local temp_dir = '/tmp/passwall_bak'
|
local temp_dir = '/tmp/passwall_bak'
|
||||||
|
|||||||
@@ -132,12 +132,14 @@ function base64Encode(text)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function UrlEncode(szText)
|
function UrlEncode(szText)
|
||||||
|
if type(szText) ~= "string" then return "" end
|
||||||
return szText:gsub("([^%w%-_%.%~])", function(c)
|
return szText:gsub("([^%w%-_%.%~])", function(c)
|
||||||
return string.format("%%%02X", string.byte(c))
|
return string.format("%%%02X", string.byte(c))
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
function UrlDecode(szText)
|
function UrlDecode(szText)
|
||||||
|
if type(szText) ~= "string" then return "" end
|
||||||
return szText and szText:gsub("%+", " "):gsub("%%(%x%x)", function(h)
|
return szText and szText:gsub("%+", " "):gsub("%%(%x%x)", function(h)
|
||||||
return string.char(tonumber(h, 16))
|
return string.char(tonumber(h, 16))
|
||||||
end) or nil
|
end) or nil
|
||||||
|
|||||||
@@ -66,10 +66,10 @@ local function build_common(node)
|
|||||||
|
|
||||||
local ech_opts = node["ech-opts"]
|
local ech_opts = node["ech-opts"]
|
||||||
if ech_opts and ech_opts.enable == true then
|
if ech_opts and ech_opts.enable == true then
|
||||||
if ech_opts.config then
|
if ech_opts["query-server-name"] then
|
||||||
o.tls.ech = ech_opts.config
|
|
||||||
elseif ech_opts["query-server-name"] then
|
|
||||||
o.tls.ech = ech_opts["query-server-name"] .. "+https://223.5.5.5/dns-query"
|
o.tls.ech = ech_opts["query-server-name"] .. "+https://223.5.5.5/dns-query"
|
||||||
|
elseif ech_opts.config then
|
||||||
|
o.tls.ech = ech_opts.config
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -683,6 +683,11 @@ local function processData(szType, content, add_mode, group, sub_cfg)
|
|||||||
result.tls = "0"
|
result.tls = "0"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if info.ech and info.ech ~= "" then
|
||||||
|
result.ech = "1"
|
||||||
|
result.ech_config = info.ech
|
||||||
|
end
|
||||||
|
|
||||||
result.tcp_fast_open = info.tfo
|
result.tcp_fast_open = info.tfo
|
||||||
|
|
||||||
info.fm = (info.fm and info.fm ~= "") and UrlDecode(info.fm) or nil
|
info.fm = (info.fm and info.fm ~= "") and UrlDecode(info.fm) or nil
|
||||||
|
|||||||
Reference in new issue
Block a user