diff --git a/V2rayNG/app/src/main/java/com/v2ray/ang/core/CoreOutboundBuilder.kt b/V2rayNG/app/src/main/java/com/v2ray/ang/core/CoreOutboundBuilder.kt index 15bdbfec..6056d2cb 100644 --- a/V2rayNG/app/src/main/java/com/v2ray/ang/core/CoreOutboundBuilder.kt +++ b/V2rayNG/app/src/main/java/com/v2ray/ang/core/CoreOutboundBuilder.kt @@ -545,7 +545,7 @@ object CoreOutboundBuilder { */ fun populateTlsSettings(streamSettings: OutboundBean.StreamSettingsBean, profileItem: ProfileItem, sniExt: String?) { val streamSecurity = profileItem.security.orEmpty() - val allowInsecure = profileItem.insecure == true + val allowInsecure = profileItem.insecure == true && profileItem.pinnedCA256.isNullOrEmpty() val sni = if (profileItem.sni.isNullOrEmpty()) { when { sniExt.isNotNullEmpty() && Utils.isDomainName(sniExt) -> sniExt