mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 09:36:34 -05:00
Fix ALPN being set to h2 by default when using TCP (#716)
This commit is contained in:
parent
d2a4e6bc47
commit
b084b4f980
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user