Browse Source

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

秋のかえで 4 years ago
parent
commit
b084b4f980
1 changed files with 1 additions and 1 deletions
  1. 1 1
      transport/internet/tcp/hub.go

+ 1 - 1
transport/internet/tcp/hub.go

@@ -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 {