From 347d9735da2a21f07e431357cc3b4ae7fcc51c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E3=81=AE=E3=81=8B=E3=81=88=E3=81=A7?= Date: Thu, 18 Feb 2021 19:50:09 +0800 Subject: [PATCH] Remove (x)tls.WithNextProto("h2") in tcp/hub.go (#260) --- transport/internet/tcp/hub.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transport/internet/tcp/hub.go b/transport/internet/tcp/hub.go index 142579bc..2c95cb99 100644 --- a/transport/internet/tcp/hub.go +++ b/transport/internet/tcp/hub.go @@ -73,10 +73,10 @@ 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 config := xtls.ConfigFromStreamSettings(streamSettings); config != nil { - l.xtlsConfig = config.GetXTLSConfig(xtls.WithNextProto("h2")) + l.xtlsConfig = config.GetXTLSConfig() } if tcpSettings.HeaderSettings != nil {