diff --git a/v2rayN/ServiceLib/Models/CoreConfigs/V2rayConfig.cs b/v2rayN/ServiceLib/Models/CoreConfigs/V2rayConfig.cs index 400d3acc..e5dcd900 100644 --- a/v2rayN/ServiceLib/Models/CoreConfigs/V2rayConfig.cs +++ b/v2rayN/ServiceLib/Models/CoreConfigs/V2rayConfig.cs @@ -364,8 +364,6 @@ public class StreamSettings4Ray public class TlsSettings4Ray { - public bool? allowInsecure { get; set; } - public string? serverName { get; set; } public List? alpn { get; set; } diff --git a/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs b/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs index bc627f7b..2a63c8cd 100644 --- a/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs +++ b/v2rayN/ServiceLib/Services/CoreConfig/V2ray/V2rayOutboundService.cs @@ -410,7 +410,6 @@ public partial class CoreConfigV2rayService TlsSettings4Ray tlsSettings = new() { - allowInsecure = _node.GetAllowInsecure(), alpn = _node.GetAlpn(), fingerprint = _node.Fingerprint.IsNullOrEmpty() ? _config.CoreBasicItem.DefFingerprint : _node.Fingerprint, echConfigList = _node.EchConfigList.NullIfEmpty(), @@ -444,12 +443,10 @@ public partial class CoreConfigV2rayService } tlsSettings.certificates = certsettings; tlsSettings.disableSystemRoot = true; - tlsSettings.allowInsecure = false; } else if (!_node.CertSha.IsNullOrEmpty()) { tlsSettings.pinnedPeerCertSha256 = _node.CertSha; - tlsSettings.allowInsecure = false; } streamSettings.tlsSettings = tlsSettings; }