fix allowInsecure bug

This commit is contained in:
2dust 2023-01-30 09:53:04 +08:00
parent 7052b56069
commit 754cbb9eaa
2 changed files with 4 additions and 4 deletions

View file

@ -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))
{

View file

@ -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
};