1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-03 06:30:42 +00:00

Fix ALPN being set to h2 by default when using TCP (#716)

This commit is contained in:
秋のかえで 2021-03-01 16:23:59 +08:00 committed by GitHub
parent d2a4e6bc47
commit b084b4f980
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ func ListenTCP(ctx context.Context, address net.Address, port net.Port, streamSe
l.listener = listener
if config := tls.ConfigFromStreamSettings(streamSettings); config != nil {
l.tlsConfig = config.GetTLSConfig(tls.WithNextProto("h2"))
l.tlsConfig = config.GetTLSConfig()
}
if tcpSettings.HeaderSettings != nil {