mirror of
https://github.com/2dust/v2rayN.git
synced 2025-05-01 20:58:50 +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,
|
type = vmessItem.headerType,
|
||||||
host = vmessItem.requestHost,
|
host = vmessItem.requestHost,
|
||||||
path = vmessItem.path,
|
path = vmessItem.path,
|
||||||
tls = vmessItem.streamSecurity
|
tls = vmessItem.streamSecurity,
|
||||||
|
security = vmessItem.security
|
||||||
};
|
};
|
||||||
|
|
||||||
url = Utils.ToJson(vmessQRCode);
|
url = Utils.ToJson(vmessQRCode);
|
||||||
|
|
|
@ -1234,6 +1234,11 @@ namespace v2rayN.Handler
|
||||||
vmessItem.requestHost = Utils.ToString(vmessQRCode.host);
|
vmessItem.requestHost = Utils.ToString(vmessQRCode.host);
|
||||||
vmessItem.path = Utils.ToString(vmessQRCode.path);
|
vmessItem.path = Utils.ToString(vmessQRCode.path);
|
||||||
vmessItem.streamSecurity = Utils.ToString(vmessQRCode.tls);
|
vmessItem.streamSecurity = Utils.ToString(vmessQRCode.tls);
|
||||||
|
|
||||||
|
if (!Utils.IsNullOrEmpty(vmessQRCode.security))
|
||||||
|
{
|
||||||
|
vmessItem.security = Utils.ToString(vmessQRCode.security);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigHandler.UpgradeServerVersion(ref vmessItem);
|
ConfigHandler.UpgradeServerVersion(ref vmessItem);
|
||||||
|
|
|
@ -49,5 +49,9 @@ namespace v2rayN.Mode
|
||||||
/// 底层传输安全
|
/// 底层传输安全
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string tls { get; set; } = string.Empty;
|
public string tls { get; set; } = string.Empty;
|
||||||
|
/// <summary>
|
||||||
|
/// 加密方式
|
||||||
|
/// </summary>
|
||||||
|
public string security { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue