Skip to content

Commit

Permalink
Add bloom filter support for Shadowsocks on Xray-core
Browse files Browse the repository at this point in the history
  • Loading branch information
hecheng337 authored and 1715173329 committed Dec 21, 2021
1 parent 8ed6a2a commit 040c5cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,11 @@ end
o.rmempty = true
o:depends({type = "v2ray", v2ray_protocol = "shadowsocks"})

o = s:option(Flag, "ivCheck", translate("Bloom Filter"))
o:depends({type = "v2ray", v2ray_protocol = "shadowsocks"})
o.default = "1"
o.rmempty = false

-- Shadowsocks Plugin
o = s:option(Value, "plugin", translate("Obfs"))
o:value("none", translate("None"))
Expand Down
3 changes: 2 additions & 1 deletion luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ function trojan_shadowsocks()
port = tonumber(server.server_port),
password = server.password,
method = (server.v2ray_protocol == "shadowsocks") and server.encrypt_method_v2ray_ss or nil,
flow = (server.v2ray_protocol == "trojan") and (server.xtls == '1') and (server.vless_flow and server.vless_flow or "xtls-rprx-splice") or nil
flow = (server.v2ray_protocol == "trojan") and (server.xtls == '1') and (server.vless_flow and server.vless_flow or "xtls-rprx-splice") or nil,
ivCheck = (server.v2ray_protocol == "shadowsocks") and (server.ivCheck == '1') or nil
}
}
}
Expand Down

0 comments on commit 040c5cb

Please sign in to comment.