✨ Sync 2026-11-11 01:22:09

This commit is contained in:
github-actions[bot] committed 2026-11-11 01:22:09 +08:00
1 parent 9c5aa2e662
commit cc21462d8a
48 files changed
+9760 -59

No files matched your search

@@ -9,6 +9,7 @@ local trojan_type = {}
local vmess_type = {}
local vless_type = {}
local hysteria2_type = {}
local other_type = {}
local xray_version = api.get_app_version("xray")
if has_ss_rust then
local s = "shadowsocks-rust"
@@ -21,6 +22,7 @@ if has_singbox then
table.insert(vmess_type, s)
table.insert(vless_type, s)
table.insert(hysteria2_type, s)
table.insert(other_type, s)
end
if has_xray then
local s = "xray"
@@ -28,6 +30,7 @@ if has_xray then
table.insert(ss_type, s)
table.insert(vmess_type, s)
table.insert(vless_type, s)
table.insert(other_type, s)
if api.compare_versions(xray_version, ">=", "26.1.13") then
table.insert(hysteria2_type, s)
end
@@ -95,7 +98,15 @@ if #hysteria2_type > 0 then
end
end
if #ss_type > 0 or #trojan_type > 0 or #vmess_type > 0 or #vless_type > 0 or #hysteria2_type > 0 then
if #other_type > 0 then
o = s:option(ListValue, "other_type", translatef("%s Node Use Type", translate("Other")))
o:value("", translate("Auto"))
for key, value in pairs(other_type) do
o:value(value)
end
end
if #ss_type > 0 or #trojan_type > 0 or #vmess_type > 0 or #vless_type > 0 or #hysteria2_type > 0 or #other_type > 0 then
o.description = string.format("<font color='red'>%s</font>",
translate("The configured type also applies to the core specified when manually importing nodes."))
end
@@ -22,6 +22,7 @@ local trojan_type = {}
local vmess_type = {}
local vless_type = {}
local hysteria2_type = {}
local other_type = {}
local xray_version = api.get_app_version("xray")
if has_ss_rust then
local s = "shadowsocks-rust"
@@ -34,6 +35,7 @@ if has_singbox then
table.insert(vmess_type, s)
table.insert(vless_type, s)
table.insert(hysteria2_type, s)
table.insert(other_type, s)
end
if has_xray then
local s = "xray"
@@ -41,6 +43,7 @@ if has_xray then
table.insert(ss_type, s)
table.insert(vmess_type, s)
table.insert(vless_type, s)
table.insert(other_type, s)
if api.compare_versions(xray_version, ">=", "26.1.13") then
table.insert(hysteria2_type, s)
end
@@ -215,7 +218,18 @@ if #hysteria2_type > 0 then
for key, value in pairs(hysteria2_type) do
o:value(value)
end
end
if #other_type > 0 then
o = s:option(ListValue, "other_type", translatef("%s Node Use Type", translate("Other")))
o.default = "global"
o:value("global", translate("Use global config"))
for key, value in pairs(other_type) do
o:value(value)
end
end
if #hysteria2_type > 0 then
o = s:option(Value, "hysteria_up_mbps", "Hy/Hy2 " .. translate("Max upload Mbps"))
o.datatype = "uinteger"
@@ -768,6 +768,10 @@ if singbox_tags:find("with_wireguard") then
o = s:option(Value, "wireguard_reserved", translate("Reserved"), translate("Decimal numbers separated by \",\" or Base64-encoded strings."))
o:depends({ protocol = "wireguard" })
o = s:option(Value, "wireguard_keepAlive", translate("Keep Alive"))
o.default = "0"
o:depends({ protocol = "wireguard" })
end
-- [[ TCP ]]--