add defaultAllowInsecure

pull/680/head 3.13
2dust 5 years ago
parent f1e51ae1a3
commit 3af13d64f3

@ -140,6 +140,10 @@ namespace v2rayN.Handler
//{
// config.remoteDNS = "1.1.1.1";
//}
if (Utils.IsNullOrEmpty(config.defaultAllowInsecure))
{
config.defaultAllowInsecure = "false";
}
if (config.subItem == null)
{
@ -193,6 +197,7 @@ namespace v2rayN.Handler
vmessItem.requestHost = vmessItem.requestHost.TrimEx();
vmessItem.path = vmessItem.path.TrimEx();
vmessItem.streamSecurity = vmessItem.streamSecurity.TrimEx();
vmessItem.allowInsecure = config.defaultAllowInsecure;
if (index >= 0)
{

@ -178,6 +178,15 @@ namespace v2rayN.Mode
{
get; set;
}
/// <summary>
/// 是否允许不安全连接
/// </summary>
public string defaultAllowInsecure
{
get; set;
}
/// <summary>
/// 订阅
/// </summary>

Loading…
Cancel
Save