Skip to content

Commit 7d85003

Browse files
committed
fix DialUDPContext
1 parent ade04a5 commit 7d85003

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

udp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func DialUDPContext(ctx context.Context, network string, laddr, raddr *net.UDPAd
3636
return &UDPConn{
3737
udpConn: conn,
3838
closeChan: make(chan struct{}),
39-
ctx: context.Background(),
39+
ctx: ctx,
4040
}, nil
4141
}
4242

0 commit comments

Comments
 (0)