Browse Source

Fix TUIC context

世界 2 years ago
parent
commit
b1f289bce5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      transport/tuic/client.go

+ 1 - 1
transport/tuic/client.go

@@ -102,7 +102,7 @@ func (c *Client) offer(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 {
 		return nil, err
 	}