update 2026-08-09 00:26:02

This commit is contained in:
action committed 2026-08-09 00:26:02 +08:00
1 parent 2a09d6ce42
commit 62707c2029
26 files changed
+239 -183

No files matched your search

+4 -3
View File
@@ -583,7 +583,7 @@ function get_node_list()
uci:foreach(appname, "socks", function(s)
if s.enabled == "1" and s.node then
node_list.socks_list[#node_list.socks_list + 1] = {
id = "Socks_" .. s[".name"],
id = s[".name"],
remark = i18n.translate("Socks Config") .. " [" .. s.port .. i18n.translate("Port") .. "]",
group = "Socks"
}
@@ -677,8 +677,9 @@ function gen_uuid(format)
return uuid
end
function gen_short_uuid()
return sys.exec("echo -n $(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 8)")
function gen_short_uuid(length)
if not length then length = 8 end
return sys.exec("echo -n $(head /dev/urandom | tr -dc A-Za-z0-9 | head -c %s)" % length)
end
function uci_get_type(type, config, default)