Implement tailcfg.PingRequest #1151

Open
opened 2025-12-29 02:28:35 +01:00 by adam · 0 comments
Owner

Originally created by @kradalby on GitHub (Nov 18, 2025).

Implement tailcfg.PingRequest.

PingRequests allows the control server (Headscale) to send special requests to the client and get a response.

They can be range from simple "are you alive" requests to "asking the client to report back something" (c2n requests).

This is needed to fix the following:

Originally created by @kradalby on GitHub (Nov 18, 2025). Implement [`tailcfg.PingRequest`](https://github.com/tailscale/tailscale/blob/9048ea25db8064b3833b7a2fcbe4b421e4a820dc/tailcfg/tailcfg.go#L1844). PingRequests allows the control server (Headscale) to send special requests to the client and get a response. They can be range from simple "are you alive" requests to "asking the client to report back something" ([c2n requests](https://github.com/tailscale/tailscale/blob/main/tailcfg/c2ntypes.go)). This is needed to fix the following: - https://github.com/juanfont/headscale/issues/1850 (c2n and internal endpoints) - https://github.com/juanfont/headscale/issues/2129 (ping client to understand if it down)
adam added the enhancementtailscale-feature-gapno-stale-bot labels 2025-12-29 02:28:35 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#1151