mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-23 11:27:29 +00:00
cmd/tailscale, ipn/ipnstate, wgengine/magicsock: update ping output for peer relay (#16515)
Updates the output for "tailscale ping" to indicate if a peer relay was traversed, just like the output for DERP or direct connections. Fixes tailscale/corp#30034 Signed-off-by: Dylan Bargatze <dylan@tailscale.com>
This commit is contained in:
@@ -1854,10 +1854,14 @@ type PingResponse struct {
|
||||
// omitted, Err should contain information as to the cause.
|
||||
LatencySeconds float64 `json:",omitempty"`
|
||||
|
||||
// Endpoint is the ip:port if direct UDP was used.
|
||||
// It is not currently set for TSMP pings.
|
||||
// Endpoint is a string of the form "{ip}:{port}" if direct UDP was used. It
|
||||
// is not currently set for TSMP.
|
||||
Endpoint string `json:",omitempty"`
|
||||
|
||||
// PeerRelay is a string of the form "{ip}:{port}:vni:{vni}" if a peer
|
||||
// relay was used. It is not currently set for TSMP.
|
||||
PeerRelay string `json:",omitempty"`
|
||||
|
||||
// DERPRegionID is non-zero DERP region ID if DERP was used.
|
||||
// It is not currently set for TSMP pings.
|
||||
DERPRegionID int `json:",omitempty"`
|
||||
|
Reference in New Issue
Block a user