mirror of
https://github.com/2dust/v2rayN.git
synced 2025-04-19 21:52:25 +00:00
订阅链接中加入security字段
This commit is contained in:
parent
d385b44a48
commit
115a8d466a
3 changed files with 11 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -49,5 +49,9 @@ namespace v2rayN.Mode
|
|||
/// 底层传输安全
|
||||
/// </summary>
|
||||
public string tls { get; set; } = string.Empty;
|
||||
/// <summary>
|
||||
/// 加密方式
|
||||
/// </summary>
|
||||
public string security { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue