Browse Source

add defaultAllowInsecure

pull/680/head 3.13
2dust 5 years ago
parent
commit
3af13d64f3
  1. 5
      v2rayN/v2rayN/Handler/ConfigHandler.cs
  2. 9
      v2rayN/v2rayN/Mode/Config.cs

5
v2rayN/v2rayN/Handler/ConfigHandler.cs

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

9
v2rayN/v2rayN/Mode/Config.cs

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

Loading…
Cancel
Save