select the H3 ALPN based on the QUIC version in use (for the H3 server)

This commit is contained in:
Marten Seemann
2020-10-29 13:08:16 +07:00
parent b7652887d2
commit c968b18a21
10 changed files with 134 additions and 62 deletions

View File

@@ -69,7 +69,7 @@ func newClient(
tlsConf = tlsConf.Clone()
}
// Replace existing ALPNs by H3
tlsConf.NextProtos = []string{nextProtoH3}
tlsConf.NextProtos = []string{nextProtoH3Draft29}
if quicConfig == nil {
quicConfig = defaultQuicConfig
}