diff --git a/v2rayN/v2rayN/Handler/ConfigHandler.cs b/v2rayN/v2rayN/Handler/ConfigHandler.cs index 660f12ee..4f7908af 100644 --- a/v2rayN/v2rayN/Handler/ConfigHandler.cs +++ b/v2rayN/v2rayN/Handler/ConfigHandler.cs @@ -638,7 +638,7 @@ namespace v2rayN.Handler } if (Utils.IsNullOrEmpty(profileItem.allowInsecure)) { - profileItem.allowInsecure = config.defAllowInsecure.ToString(); + profileItem.allowInsecure = config.defAllowInsecure.ToString().ToLower(); } AddServerCommon(ref config, profileItem); @@ -750,7 +750,7 @@ namespace v2rayN.Handler profileItem.configVersion = 2; if (Utils.IsNullOrEmpty(profileItem.allowInsecure)) { - profileItem.allowInsecure = config.defAllowInsecure.ToString(); + profileItem.allowInsecure = config.defAllowInsecure.ToString().ToLower(); } if (!Utils.IsNullOrEmpty(profileItem.network) && !Global.networks.Contains(profileItem.network)) { diff --git a/v2rayN/v2rayN/Handler/CoreConfigHandler.cs b/v2rayN/v2rayN/Handler/CoreConfigHandler.cs index ae017d47..617581cd 100644 --- a/v2rayN/v2rayN/Handler/CoreConfigHandler.cs +++ b/v2rayN/v2rayN/Handler/CoreConfigHandler.cs @@ -554,7 +554,7 @@ namespace v2rayN.Handler TlsSettings tlsSettings = new TlsSettings { - allowInsecure = Utils.ToBool(node.allowInsecure), + allowInsecure = Utils.ToBool(node.allowInsecure.IsNullOrEmpty() ? config.defAllowInsecure.ToString().ToLower() : node.allowInsecure), alpn = node.GetAlpn(), fingerprint = node.fingerprint }; @@ -576,7 +576,7 @@ namespace v2rayN.Handler TlsSettings xtlsSettings = new TlsSettings { - allowInsecure = Utils.ToBool(node.allowInsecure), + allowInsecure = Utils.ToBool(node.allowInsecure.IsNullOrEmpty() ? config.defAllowInsecure.ToString().ToLower() : node.allowInsecure), alpn = node.GetAlpn(), fingerprint = node.fingerprint };