mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-07-27 10:31:38 +08:00
Update ssr-plus.patch
This commit is contained in:
parent
50bf1ec00a
commit
058c6c11ff
30
.github/diy/patches/ssr-plus.patch
vendored
30
.github/diy/patches/ssr-plus.patch
vendored
@ -243,3 +243,33 @@ index 000000000000..a00fff9c79b3
|
||||
+
|
||||
rm -f /tmp/luci-indexcache /tmp/luci-indexcache.*
|
||||
rm -rf /tmp/luci-modulecache/
|
||||
|
||||
--- a/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua
|
||||
+++ b/luci-app-ssr-plus/root/usr/share/shadowsocksr/gen_config.lua
|
||||
@@ -389,10 +389,7 @@ Xray.outbounds = {
|
||||
fingerprint = server.fingerprint,
|
||||
allowInsecure = (function()
|
||||
if server.tls_CertSha and server.tls_CertSha ~= "" then return nil end
|
||||
- if os.date("%Y.%m.%d") < "2026.06.01" then
|
||||
- return server.insecure == "1"
|
||||
- end
|
||||
- return nil
|
||||
+ return server.insecure == "1"
|
||||
end)(),
|
||||
serverName = server.tls_host,
|
||||
certificates = server.certificate and {
|
||||
|
||||
--- a/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-config.lua
|
||||
+++ b/luci-app-ssr-plus/luasrc/model/cbi/shadowsocksr/client-config.lua
|
||||
@@ -1456,11 +1456,9 @@ o:depends("type", "tuic")
|
||||
o.description = translate("If true, allowss insecure connection at TLS client, e.g., TLS server uses unverifiable certificates.")
|
||||
-- Xray 支持时间判断
|
||||
-- if os.time() < os.time({year=2026,month=6,day=1}) then
|
||||
-if os.date("%Y.%m.%d") < "2026.06.01" then
|
||||
-- Xray 支持到 26.06.01
|
||||
o:depends("tls", true)
|
||||
o:depends({ type = "v2ray", v2ray_protocol = "vless", reality = true })
|
||||
-end
|
||||
|
||||
if xray_version_val >= 260131 then
|
||||
-- Xray 版本大于等于 26.1.31
|
||||
|
||||
Loading…
Reference in New Issue
Block a user