mirror of
https://github.com/2dust/v2rayN.git
synced 2025-07-02 13:02:10 +00:00
add defaultAllowInsecure
This commit is contained in:
parent
f1e51ae1a3
commit
3af13d64f3
2 changed files with 14 additions and 0 deletions
|
@ -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…
Reference in a new issue