Skip to content

Commit

Permalink
quicreuse: actually pass the token key to the quic.Transport
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Oct 20, 2023
1 parent ecea998 commit 3a6d0ee
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion p2p/transport/quicreuse/connmgr.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,14 @@ func (c *ConnManager) transportForListen(network string, laddr *net.UDPAddr) (re
if err != nil {
return nil, err
}
return &singleOwnerTransport{Transport: quic.Transport{Conn: conn, StatelessResetKey: &c.srk}, packetConn: conn}, nil
return &singleOwnerTransport{
packetConn: conn,
Transport: quic.Transport{
Conn: conn,
StatelessResetKey: &c.srk,
TokenGeneratorKey: &c.tokenKey,
},
}, nil
}

func (c *ConnManager) DialQUIC(ctx context.Context, raddr ma.Multiaddr, tlsConf *tls.Config, allowWindowIncrease func(conn quic.Connection, delta uint64) bool) (quic.Connection, error) {
Expand Down

0 comments on commit 3a6d0ee

Please sign in to comment.