mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-07-27 08:31:44 +08:00
update 2026-05-31 21:26:09
This commit is contained in:
parent
c1a0532460
commit
b0c6d52e54
@ -660,17 +660,30 @@ o.rmempty = true
|
||||
o.default = "0"
|
||||
|
||||
o = s:option(Value, "obfs_type", translate("Obfuscation Type"))
|
||||
o:value("", translate("Disable"))
|
||||
o:value("salamander")
|
||||
o:value("gecko")
|
||||
o.rmempty = true
|
||||
o:depends({type = "hysteria2", flag_obfs = true})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "hysteria2", flag_obfs = true})
|
||||
o.rmempty = true
|
||||
o.placeholder = "salamander"
|
||||
|
||||
o = s:option(Value, "salamander", translate("Obfuscation Password"))
|
||||
o:depends({type = "hysteria2", flag_obfs = true})
|
||||
o:depends({type = "v2ray", v2ray_protocol = "hysteria2", flag_obfs = true})
|
||||
o.password = true
|
||||
o.rmempty = true
|
||||
o.placeholder = "cry_me_a_r1ver"
|
||||
o:depends({type = "hysteria2", flag_obfs = true})
|
||||
local obfs = s.fields["obfs_type"].keylist
|
||||
if obfs and type(obfs) == "table" and #obfs > 0 then
|
||||
for _, v in ipairs(obfs) do
|
||||
if v and v ~= "" then
|
||||
o:depends({
|
||||
type = "v2ray",
|
||||
v2ray_protocol = "hysteria2",
|
||||
obfs_type = v,
|
||||
flag_obfs = true
|
||||
})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
o = s:option(Flag, "flag_quicparam", translate("Hysterir QUIC parameters"))
|
||||
o:depends("type", "hysteria2")
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -636,9 +636,10 @@ Xray.outbounds = {
|
||||
local udp = {}
|
||||
if (server.flag_obfs == "1" and (server.obfs_type and server.obfs_type ~= "")) then
|
||||
local o = {
|
||||
type = server.obfs_type,
|
||||
type = "salamander",
|
||||
settings = server.salamander and {
|
||||
password = server.salamander
|
||||
password = server.salamander,
|
||||
packetSize = server.obfs_type == "gecko" and "512-1200" or nil
|
||||
} or nil
|
||||
}
|
||||
udp[#udp+1] = o
|
||||
|
||||
@ -21,13 +21,13 @@ define Download/geoip
|
||||
HASH:=e9002979e0df72bce1c8751ff70725386594c551db684b7a232935b8b2bb8aa2
|
||||
endef
|
||||
|
||||
GEOSITE_VER:=20260530034608
|
||||
GEOSITE_VER:=20260531040030
|
||||
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:=bb23fffa7d570fc9b9218effc40285958f7ab9ac47cc6d8d8867594c55b71f45
|
||||
HASH:=a2d76b026b43232ecf2c9cb43466e9c1a0ac68bac56bdcb03afa3e26ea3e6409
|
||||
endef
|
||||
|
||||
GEOSITE_IRAN_VER:=202605250156
|
||||
|
||||
Loading…
Reference in New Issue
Block a user