diff --git a/.github/diy/patches/ssr-plus.patch b/.github/diy/patches/ssr-plus.patch index 44d7f45b..e4a8a28b 100644 --- a/.github/diy/patches/ssr-plus.patch +++ b/.github/diy/patches/ssr-plus.patch @@ -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