mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-09-11 02:44:57 +08:00
Update luci-app-passwall.patch
This commit is contained in:
@@ -542,23 +542,3 @@ index 000000000000..a00fff9c79b3
|
||||
end)(),
|
||||
fingerprint = (node.type == "Xray" and node.utls == "1" and node.fingerprint and node.fingerprint ~= "") and node.fingerprint or nil,
|
||||
pinnedPeerCertSha256 = (function()
|
||||
|
||||
--- a/luci-app-passwall/luasrc/model/cbi/passwall/client/type/ray.lua
|
||||
+++ b/luci-app-passwall/luasrc/model/cbi/passwall/client/type/ray.lua
|
||||
@@ -431,12 +431,10 @@ o = s:option(Value, _n("tls_serverName"), "SNI " .. translate("Domain"))
|
||||
o:depends({ [_n("tls")] = true })
|
||||
o:depends({ [_n("protocol")] = "hysteria2" })
|
||||
|
||||
-if api.compare_versions(os.date("%Y.%m.%d"), "<", "2026.6.1") then
|
||||
- o = s:option(Flag, _n("tls_allowInsecure"), translate("allowInsecure"), translate("Whether unsafe connections are allowed. When checked, Certificate validation will be skipped."))
|
||||
- o.default = "0"
|
||||
- o:depends({ [_n("tls")] = true, [_n("reality")] = false })
|
||||
- o:depends({ [_n("protocol")] = "hysteria2" })
|
||||
-end
|
||||
+o = s:option(Flag, _n("tls_allowInsecure"), translate("allowInsecure"), translate("Whether unsafe connections are allowed. When checked, Certificate validation will be skipped."))
|
||||
+o.default = "0"
|
||||
+o:depends({ [_n("tls")] = true, [_n("reality")] = false })
|
||||
+o:depends({ [_n("protocol")] = "hysteria2" })
|
||||
|
||||
if api.compare_versions(xray_version, ">=", "26.1.31") then
|
||||
o = s:option(Value, _n("tls_pinSHA256"), translate("TLS Chain Fingerprint (SHA256)"))
|
||||
|
||||
Reference in New Issue
Block a user