don't replace the ALPN in the tls.Config returned by GetConfigForClient

This commit is contained in:
Marten Seemann
2019-11-09 17:26:52 +07:00
parent a3663a049d
commit b444ca613c
2 changed files with 26 additions and 0 deletions

View File

@@ -113,6 +113,7 @@ func (s *Server) serveImpl(tlsConf *tls.Config, conn net.PacketConn) error {
if err != nil || conf == nil {
return conf, err
}
conf = conf.Clone()
conf.NextProtos = []string{nextProtoH3}
return conf, nil
}