Explorar el Código

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

秋のかえで hace 4 años
padre
commit
b084b4f980
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 {