forked from quic-go/quic-go
fix compatibility with API breaking change in Go 1.21 (#4020)
* add Go 1.21 compatibility Signed-off-by: Eric Lagergren <elagergren@spideroak-inc.com> * refactor for Go 1.20 Signed-off-by: Eric Lagergren <elagergren@spideroak-inc.com> --------- Signed-off-by: Eric Lagergren <elagergren@spideroak-inc.com>
This commit is contained in:
committed by
GitHub
parent
aab4d4e410
commit
571d3adef4
@@ -359,7 +359,7 @@ func (h *cryptoSetup) GetSessionTicket() ([]byte, error) {
|
||||
if h.tlsConf.SessionTicketsDisabled {
|
||||
return nil, nil
|
||||
}
|
||||
if err := h.conn.SendSessionTicket(h.allow0RTT); err != nil {
|
||||
if err := qtls.SendSessionTicket(h.conn, h.allow0RTT); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ev := h.conn.NextEvent()
|
||||
|
||||
Reference in New Issue
Block a user