forked from quic-go/quic-go
make sure the TLS config contains the H3 ALPN token in server and client
This commit is contained in:
@@ -55,7 +55,9 @@ func newClient(
|
||||
if tlsConf == nil {
|
||||
tlsConf = &tls.Config{}
|
||||
}
|
||||
tlsConf.NextProtos = []string{"h3-19"}
|
||||
if !strSliceContains(tlsConf.NextProtos, nextProtoH3) {
|
||||
tlsConf.NextProtos = append(tlsConf.NextProtos, nextProtoH3)
|
||||
}
|
||||
if quicConfig == nil {
|
||||
quicConfig = defaultQuicConfig
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user