mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-23 05:35:00 +03:00
up tls
This commit is contained in:
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user