Merge pull request #524 from lycor1s/master

fix quic server name
pull/533/head
2dust 5 years ago committed by GitHub
commit e354dad70b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

19
.gitignore vendored

@ -1,19 +0,0 @@
################################################################################
# 此 .gitignore 文件已由 Microsoft(R) Visual Studio 自动创建。
################################################################################
/v2rayN/.vs/
/v2rayN/v2rayN/bin/Debug/app.publish
/v2rayN/v2rayN/bin/Debug
/v2rayN/v2rayN/obj/Debug
/v2rayN/.vs/v2rayN/DesignTimeBuild
/v2rayN/v2rayN/bin/Release
/v2rayN/v2rayN/obj/Release
/v2rayN/packages
.vs/ProjectSettings.json
.vs/slnx.sqlite
.vs/VSWorkspaceState.json
/v2rayN/v2rayUpgrade/bin/Debug
/v2rayN/v2rayUpgrade/obj/Debug
/v2rayN/v2rayUpgrade/bin/Release
/v2rayN/v2rayUpgrade/obj/Release

@ -446,15 +446,7 @@ namespace v2rayN.Handler
{ {
//远程服务器底层传输配置 //远程服务器底层传输配置
streamSettings.network = config.network(); streamSettings.network = config.network();
string host; var host = config.requestHost();
if (streamSettings.network != "quic")
{
host = config.requestHost();
}
else
{
host = config.address();
}
//if tls //if tls
if (config.streamSecurity() == Global.StreamSecurity) if (config.streamSecurity() == Global.StreamSecurity)
{ {
@ -548,7 +540,7 @@ namespace v2rayN.Handler
quicsettings.key = config.path(); quicsettings.key = config.path();
quicsettings.header = new Header(); quicsettings.header = new Header();
quicsettings.header.type = config.headerType(); quicsettings.header.type = config.headerType();
streamSettings.tlsSettings.serverName = config.address();
streamSettings.quicSettings = quicsettings; streamSettings.quicSettings = quicsettings;
break; break;
default: default:

Loading…
Cancel
Save