This commit is contained in:
2dust
2025-11-17 17:46:15 +08:00
parent 2789db2c70
commit 7c14a0c200
@@ -73,7 +73,7 @@ open class FmtBase {
config.security = null
}
// Support multiple possible query keys for allowInsecure like the C# implementation
val allowInsecureKeys = arrayOf("insecure", "allowInsecure", "allow_insecure", "verify")
val allowInsecureKeys = arrayOf("insecure", "allowInsecure", "allow_insecure")
config.insecure = when {
allowInsecureKeys.any { queryParam[it] == "1" } -> true
allowInsecureKeys.any { queryParam[it] == "0" } -> false