🔥 Sync 2026-10-07 17:07:39

This commit is contained in:
github-actions[bot] committed 2026-10-07 17:07:39 +08:00
1 parent 007d8fe1b0
commit ecb79884af
23 files changed
+1659 -78

No files matched your search

@@ -419,7 +419,12 @@ local function get_server_field(sid, option, default)
return value
end
local function ipv6_enabled()
return uci:get_first("shadowsocksr", "global", "ipv6_support", "0") == "1"
end
local function get_filter_aaaa()
if ipv6_enabled() then return "0" end
local value = uci:get_first("shadowsocksr", "global", "filter_aaaa", "1")
if value == nil or value == "" then
value = uci:get_first("shadowsocksr", "global", "mosdns_ipv6", "1")
@@ -485,7 +490,8 @@ local function build_tuic_runtime_doc(sid, local_port, socks_port, mode)
local doc = {
["allow-lan"] = true,
["bind-address"] = "0.0.0.0",
["bind-address"] = ipv6_enabled() and "*" or "0.0.0.0",
ipv6 = ipv6_enabled(),
mode = "rule",
["log-level"] = "silent",
["find-process-mode"] = "off",
@@ -950,7 +956,8 @@ local function build_single_proxy_runtime_doc(proxy, local_port, socks_port, mod
local socks_listen = tonumber(socks_port)
local doc = {
["allow-lan"] = true,
["bind-address"] = "0.0.0.0",
["bind-address"] = ipv6_enabled() and "*" or "0.0.0.0",
ipv6 = ipv6_enabled(),
mode = "rule",
["log-level"] = "silent",
["find-process-mode"] = "off",
@@ -1242,7 +1249,8 @@ local function build_shadowsocks_runtime_doc(sid, local_port, socks_port, mode)
local doc = {
["allow-lan"] = true,
["bind-address"] = "0.0.0.0",
["bind-address"] = ipv6_enabled() and "*" or "0.0.0.0",
ipv6 = ipv6_enabled(),
mode = "rule",
["log-level"] = "silent",
["find-process-mode"] = "off",