mirror of
https://github.com/2dust/v2rayN.git
synced 2025-05-03 05:38:51 +00:00
fix allowInsecure bug
This commit is contained in:
parent
7052b56069
commit
754cbb9eaa
2 changed files with 4 additions and 4 deletions
|
@ -638,7 +638,7 @@ namespace v2rayN.Handler
|
||||||
}
|
}
|
||||||
if (Utils.IsNullOrEmpty(profileItem.allowInsecure))
|
if (Utils.IsNullOrEmpty(profileItem.allowInsecure))
|
||||||
{
|
{
|
||||||
profileItem.allowInsecure = config.defAllowInsecure.ToString();
|
profileItem.allowInsecure = config.defAllowInsecure.ToString().ToLower();
|
||||||
}
|
}
|
||||||
|
|
||||||
AddServerCommon(ref config, profileItem);
|
AddServerCommon(ref config, profileItem);
|
||||||
|
@ -750,7 +750,7 @@ namespace v2rayN.Handler
|
||||||
profileItem.configVersion = 2;
|
profileItem.configVersion = 2;
|
||||||
if (Utils.IsNullOrEmpty(profileItem.allowInsecure))
|
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))
|
if (!Utils.IsNullOrEmpty(profileItem.network) && !Global.networks.Contains(profileItem.network))
|
||||||
{
|
{
|
||||||
|
|
|
@ -554,7 +554,7 @@ namespace v2rayN.Handler
|
||||||
|
|
||||||
TlsSettings tlsSettings = new TlsSettings
|
TlsSettings tlsSettings = new TlsSettings
|
||||||
{
|
{
|
||||||
allowInsecure = Utils.ToBool(node.allowInsecure),
|
allowInsecure = Utils.ToBool(node.allowInsecure.IsNullOrEmpty() ? config.defAllowInsecure.ToString().ToLower() : node.allowInsecure),
|
||||||
alpn = node.GetAlpn(),
|
alpn = node.GetAlpn(),
|
||||||
fingerprint = node.fingerprint
|
fingerprint = node.fingerprint
|
||||||
};
|
};
|
||||||
|
@ -576,7 +576,7 @@ namespace v2rayN.Handler
|
||||||
|
|
||||||
TlsSettings xtlsSettings = new TlsSettings
|
TlsSettings xtlsSettings = new TlsSettings
|
||||||
{
|
{
|
||||||
allowInsecure = Utils.ToBool(node.allowInsecure),
|
allowInsecure = Utils.ToBool(node.allowInsecure.IsNullOrEmpty() ? config.defAllowInsecure.ToString().ToLower() : node.allowInsecure),
|
||||||
alpn = node.GetAlpn(),
|
alpn = node.GetAlpn(),
|
||||||
fingerprint = node.fingerprint
|
fingerprint = node.fingerprint
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue