Skip to content

tailcat: expose server peer status through Client.Status - #216

Open
ekarulf wants to merge 1 commit into
tailscale:mainfrom
ekarulf:client-status
Open

ekarulf wants to merge 1 commit into
tailscale:mainfrom
ekarulf:client-status

Conversation

@ekarulf

@ekarulf ekarulf commented Dec 4, 2026

Copy link
Copy Markdown

Add Client.Status() so programs embedding Tailcat can report whether the path to the server is direct or DERP-relayed without sending a probe. The method reuses the WireGuard and DERP status collector behind Server.Status() and returns nil before startup and after shutdown.

Extend the existing peer-status test to check both ends of a connection, including a client status read overlapping shutdown.

Tested with go test -race -count=25 -run '^TestStatusReportsPeers$' . and go vet ..

Related to #121.

Reuse the existing status collector to report the direct or relayed path to the server without sending a probe. Check peer visibility at both ends and client status during shutdown.

Signed-off-by: Erik Karulf <67336+ekarulf@users.noreply.github.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant