mirror of https://github.com/2dust/v2rayN
parent
f1e51ae1a3
commit
3af13d64f3
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -178,6 +178,15 @@ namespace v2rayN.Mode
|
||||||
{
|
{
|
||||||
get; set;
|
get; set;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 是否允许不安全连接
|
||||||
|
/// </summary>
|
||||||
|
public string defaultAllowInsecure
|
||||||
|
{
|
||||||
|
get; set;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 订阅
|
/// 订阅
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue