🤞 Sync 2026-08-09 18:27:19

This commit is contained in:
github-actions[bot] committed 2026-08-09 18:27:19 +08:00
1 parent 59356ee7dd
commit df29e10344
54 files changed
+424 -239

No files matched your search

@@ -31,6 +31,11 @@ local function get_domain_excluded()
return hosts
end
local function get_log_level(s)
if s == "warn" then s = "warning" end
return s
end
function gen_outbound(flag, node, tag, proxy_table)
local result = nil
if node then
@@ -165,7 +170,8 @@ function gen_outbound(flag, node, tag, proxy_table)
certificates = (node.tls_certificate == "1" and node.tls_certificate_pem ~= "") and {
certificate = api.split(node.tls_certificate_pem, "\n"),
usage = "verify"
} or nil
} or nil,
cipherSuites = node.cipherSuites or nil
} or nil,
realitySettings = (node.stream_security == "reality") and {
serverName = node.tls_serverName,
@@ -453,7 +459,7 @@ function gen_outbound(flag, node, tag, proxy_table)
local dns_key = dns_proto .. "|" .. config_address .. "|" .. tostring(config_port)
if not GLOBAL.DNS_SERVER[dns_key] then
GLOBAL.DNS_SERVER[dns_key] = {
tag = "dns-node-" .. api.gen_short_uuid(),
tag = "dns-node-" .. api.gen_random_char(),
-- queryStrategy = node.domain_strategy or "UseIP",
address = config_address,
port = config_port,
@@ -635,7 +641,7 @@ function gen_config_server(node)
local config = {
log = {
-- error = "/tmp/etc/passwall_server/log/" .. user[".name"] .. ".log",
loglevel = ("1" == node.log) and node.loglevel or "none"
loglevel = ("1" == node.log) and get_log_level(node.loglevel) or "none"
},
-- 传入连接
inbounds = {
@@ -1966,7 +1972,7 @@ function gen_config(var)
end)(),
log = {
-- error = string.format("/tmp/etc/%s/%s.log", appname, node[".name"]),
loglevel = loglevel
loglevel = get_log_level(loglevel)
},
-- DNS
dns = dns,