headscale icon indicating copy to clipboard operation
headscale copied to clipboard

feat(mapper): add SendDirectUpdate method for direct MapResponse delivery

Open roganlynch opened this issue 3 months ago • 0 comments

Adds SendDirectUpdate method to the mapper batcher interface for direct MapResponse delivery.

Changes

  • Extends the Batcher interface with SendDirectUpdate(ctx context.Context, node *types.Node, update *tailcfg.MapResponse) error
  • Implements the method to deliver MapResponse updates directly to specific nodes without queuing
  • Provides foundation for sending targeted ping requests to nodes

Context

This is a prerequisite for the ping functionality, allowing the control plane to send MapResponses containing ping requests directly to target nodes. This builds upon the mapper infrastructure and enables immediate delivery of control messages.

Part of the work discussed in #2902 to add ping functionality to headscale.


Note: This code was generated with assistance from Claude Sonnet 4.5 via cline.bot

roganlynch avatar Dec 06 '25 00:12 roganlynch