mirror of
https://github.com/2dust/v2rayN.git
synced 2025-04-19 21:52:25 +00:00
up tls
This commit is contained in:
parent
a8f1a992c5
commit
01fdb08dd3
2 changed files with 21 additions and 1 deletions
|
@ -95,6 +95,11 @@ namespace v2rayN
|
||||||
/// 阻止 tag值
|
/// 阻止 tag值
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string blockTag = "block";
|
public const string blockTag = "block";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
public const string StreamSecurity = "tls";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// vmess
|
/// vmess
|
||||||
|
|
|
@ -443,7 +443,7 @@ namespace v2rayN.Handler
|
||||||
var host = config.requestHost();
|
var host = config.requestHost();
|
||||||
|
|
||||||
//if tls
|
//if tls
|
||||||
if (config.streamSecurity() == "tls")
|
if (config.streamSecurity() == Global.StreamSecurity)
|
||||||
{
|
{
|
||||||
streamSettings.security = config.streamSecurity();
|
streamSettings.security = config.streamSecurity();
|
||||||
|
|
||||||
|
@ -964,6 +964,13 @@ namespace v2rayN.Handler
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//tls
|
||||||
|
if (outbound.streamSettings != null
|
||||||
|
&& outbound.streamSettings.security != null
|
||||||
|
&& outbound.streamSettings.security == Global.StreamSecurity)
|
||||||
|
{
|
||||||
|
vmessItem.streamSecurity = Global.StreamSecurity;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
@ -1101,6 +1108,14 @@ namespace v2rayN.Handler
|
||||||
vmessItem.requestHost = Utils.List2String(inbound.streamSettings.httpSettings.host);
|
vmessItem.requestHost = Utils.List2String(inbound.streamSettings.httpSettings.host);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//tls
|
||||||
|
if (inbound.streamSettings != null
|
||||||
|
&& inbound.streamSettings.security != null
|
||||||
|
&& inbound.streamSettings.security == Global.StreamSecurity)
|
||||||
|
{
|
||||||
|
vmessItem.streamSecurity = Global.StreamSecurity;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch
|
catch
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue