update 2025-01-25 00:24:25
This commit is contained in:
parent
ebab9748ec
commit
89a325a8e7
|
@ -151,8 +151,26 @@ o = s:option(Value, _n("reality_dest"), translate("Dest"))
|
||||||
o.default = "google.com:443"
|
o.default = "google.com:443"
|
||||||
o:depends({ [_n("reality")] = true })
|
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 })
|
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 = s:option(ListValue, _n("alpn"), translate("alpn"))
|
||||||
o.default = "h2,http/1.1"
|
o.default = "h2,http/1.1"
|
||||||
|
|
|
@ -536,9 +536,7 @@ function gen_config_server(node)
|
||||||
config.inbounds[1].streamSettings.realitySettings = {
|
config.inbounds[1].streamSettings.realitySettings = {
|
||||||
show = false,
|
show = false,
|
||||||
dest = node.reality_dest,
|
dest = node.reality_dest,
|
||||||
serverNames = {
|
serverNames = node.reality_serverNames or {},
|
||||||
node.reality_serverNames
|
|
||||||
},
|
|
||||||
privateKey = node.reality_private_key,
|
privateKey = node.reality_private_key,
|
||||||
shortIds = node.reality_shortId or ""
|
shortIds = node.reality_shortId or ""
|
||||||
} or nil
|
} or nil
|
||||||
|
|
|
@ -21,13 +21,13 @@ define Download/geoip
|
||||||
HASH:=4f8d16184b6938e635519bc91cb978dcea6884878e39f592f7144135401d6bb6
|
HASH:=4f8d16184b6938e635519bc91cb978dcea6884878e39f592f7144135401d6bb6
|
||||||
endef
|
endef
|
||||||
|
|
||||||
GEOSITE_VER:=20241221105938
|
GEOSITE_VER:=20250124154827
|
||||||
GEOSITE_FILE:=dlc.dat.$(GEOSITE_VER)
|
GEOSITE_FILE:=dlc.dat.$(GEOSITE_VER)
|
||||||
define Download/geosite
|
define Download/geosite
|
||||||
URL:=https://github.com/v2fly/domain-list-community/releases/download/$(GEOSITE_VER)/
|
URL:=https://github.com/v2fly/domain-list-community/releases/download/$(GEOSITE_VER)/
|
||||||
URL_FILE:=dlc.dat
|
URL_FILE:=dlc.dat
|
||||||
FILE:=$(GEOSITE_FILE)
|
FILE:=$(GEOSITE_FILE)
|
||||||
HASH:=aa65cee72dd6afbf9dd4c474b4ff28ceb063f6abf99249a084091adb4f282f09
|
HASH:=ac12d81edc6058b3c66ae96a0a26ca8281616d96ea86d0d77b2ceff34a3e1a9d
|
||||||
endef
|
endef
|
||||||
|
|
||||||
GEOSITE_IRAN_VER:=202501200034
|
GEOSITE_IRAN_VER:=202501200034
|
||||||
|
|
Loading…
Reference in New Issue