Merge pull request #460 from yfdyh000/fix_quic_host

fix QUIC host config
pull/524/head
2dust 2020-03-09 10:46:25 +08:00 committed by GitHub
commit ecf1be42ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View File

@ -446,8 +446,15 @@ namespace v2rayN.Handler
{
//远程服务器底层传输配置
streamSettings.network = config.network();
var host = config.requestHost();
string host;
if (streamSettings.network != "quic")
{
host = config.requestHost();
}
else
{
host = config.address();
}
//if tls
if (config.streamSecurity() == Global.StreamSecurity)
{

View File

@ -468,7 +468,7 @@ namespace v2rayN.Mode
get; set;
}
/// <summary>
/// tcp,kcp,ws
/// tcp,kcp,ws,h2,quic
/// </summary>
public string network
{