V2rayConfig: Todo: add allowInsecure config

Signed-off-by: Beta Soft <betaxab@gmail.com>
This commit is contained in:
Beta Soft 2020-04-22 20:12:30 +08:00
parent f6b044c10c
commit d4715fb9e1
No known key found for this signature in database
GPG key ID: 180A31AB98D5C156
3 changed files with 7 additions and 1 deletions

View file

@ -389,7 +389,8 @@ namespace v2rayN.Handler
type = vmessItem.headerType,
host = vmessItem.requestHost,
path = vmessItem.path,
tls = vmessItem.streamSecurity
tls = vmessItem.streamSecurity,
allowInsecure = vmessItem.allowInsecure
};
url = Utils.ToJson(vmessQRCode);

View file

@ -1234,6 +1234,7 @@ namespace v2rayN.Handler
vmessItem.requestHost = Utils.ToString(vmessQRCode.host);
vmessItem.path = Utils.ToString(vmessQRCode.path);
vmessItem.streamSecurity = Utils.ToString(vmessQRCode.tls);
vmessItem.allowInsecure = Utils.ToString(vmessQRCode.allowInsecure);
}
ConfigHandler.UpgradeServerVersion(ref vmessItem);

View file

@ -49,5 +49,9 @@ namespace v2rayN.Mode
/// 底层传输安全
/// </summary>
public string tls { get; set; } = string.Empty;
/// <summary>
/// 允许不安全的TLS
/// </summary>
public string allowInsecure { get; set; } = string.Empty;
}
}