订阅链接中加入security字段

This commit is contained in:
1065380934@qq.com 2020-05-18 15:08:23 +08:00
parent d385b44a48
commit 115a8d466a
3 changed files with 11 additions and 1 deletions

View file

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

View file

@ -1234,6 +1234,11 @@ namespace v2rayN.Handler
vmessItem.requestHost = Utils.ToString(vmessQRCode.host);
vmessItem.path = Utils.ToString(vmessQRCode.path);
vmessItem.streamSecurity = Utils.ToString(vmessQRCode.tls);
if (!Utils.IsNullOrEmpty(vmessQRCode.security))
{
vmessItem.security = Utils.ToString(vmessQRCode.security);
}
}
ConfigHandler.UpgradeServerVersion(ref vmessItem);

View file

@ -49,5 +49,9 @@ namespace v2rayN.Mode
/// 底层传输安全
/// </summary>
public string tls { get; set; } = string.Empty;
/// <summary>
/// 加密方式
/// </summary>
public string security { get; set; } = string.Empty;
}
}