Remove (x)tls.WithNextProto("h2") in tcp/hub.go (#260)

This commit is contained in:
秋のかえで 2021-02-18 19:50:09 +08:00 committed by GitHub
parent 9aa49be703
commit 347d9735da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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