fix QUIC error "CRYPTO_ERROR 0x178 (remote): tls: no application protocol"

This commit is contained in:
Wankko Ree
2024-07-03 17:11:30 +08:00
committed by ginuerzh
parent 74dc03bd66
commit ba2a83a51d
4 changed files with 4 additions and 4 deletions

View File

@ -82,7 +82,7 @@ func (l *quicListener) Init(md md.Metadata) (err error) {
}
tlsCfg := l.options.TLSConfig
tlsCfg.NextProtos = []string{"http/3", "quic/v1"}
tlsCfg.NextProtos = []string{"h3", "quic/v1"}
ln, err := quic.ListenEarly(conn, tlsCfg, config)
if err != nil {