update 2025-01-25 00:24:25

This commit is contained in:
kenzok8 2025-01-25 00:24:25 +08:00
parent ebab9748ec
commit 89a325a8e7
3 changed files with 22 additions and 6 deletions

View File

@ -151,8 +151,26 @@ o = s:option(Value, _n("reality_dest"), translate("Dest"))
o.default = "google.com:443"
o:depends({ [_n("reality")] = true })
o = s:option(Value, _n("reality_serverNames"), translate("serverNames"))
o = s:option(DynamicList, _n("reality_serverNames"), translate("serverNames"))
o:depends({ [_n("reality")] = true })
function o.write(self, section, value)
local t = {}
local t2 = {}
if type(value) == "table" then
local x
for _, x in ipairs(value) do
if x and #x > 0 then
if not t2[x] then
t2[x] = x
t[#t+1] = x
end
end
end
else
t = { value }
end
return DynamicList.write(self, section, t)
end
o = s:option(ListValue, _n("alpn"), translate("alpn"))
o.default = "h2,http/1.1"

View File

@ -536,9 +536,7 @@ function gen_config_server(node)
config.inbounds[1].streamSettings.realitySettings = {
show = false,
dest = node.reality_dest,
serverNames = {
node.reality_serverNames
},
serverNames = node.reality_serverNames or {},
privateKey = node.reality_private_key,
shortIds = node.reality_shortId or ""
} or nil

View File

@ -21,13 +21,13 @@ define Download/geoip
HASH:=4f8d16184b6938e635519bc91cb978dcea6884878e39f592f7144135401d6bb6
endef
GEOSITE_VER:=20241221105938
GEOSITE_VER:=20250124154827
GEOSITE_FILE:=dlc.dat.$(GEOSITE_VER)
define Download/geosite
URL:=https://github.com/v2fly/domain-list-community/releases/download/$(GEOSITE_VER)/
URL_FILE:=dlc.dat
FILE:=$(GEOSITE_FILE)
HASH:=aa65cee72dd6afbf9dd4c474b4ff28ceb063f6abf99249a084091adb4f282f09
HASH:=ac12d81edc6058b3c66ae96a0a26ca8281616d96ea86d0d77b2ceff34a3e1a9d
endef
GEOSITE_IRAN_VER:=202501200034