Fix TUIC context

This commit is contained in:
世界 2023-09-09 11:40:20 +08:00
parent a8beb80876
commit b1f289bce5
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -102,7 +102,7 @@ func (c *Client) offer(ctx context.Context) (*clientQUICConnection, error) {
} }
func (c *Client) offerNew(ctx context.Context) (*clientQUICConnection, error) { func (c *Client) offerNew(ctx context.Context) (*clientQUICConnection, error) {
udpConn, err := c.dialer.DialContext(ctx, "udp", c.serverAddr) udpConn, err := c.dialer.DialContext(c.ctx, "udp", c.serverAddr)
if err != nil { if err != nil {
return nil, err return nil, err
} }