cmd/tailscale: add start of "debug derp" subcommand

Updates #6526

Change-Id: I84e440a8bd837c383000ce0cec4ff36b24249e8b
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2022-11-26 14:23:00 -08:00
committed by Brad Fitzpatrick
parent b0545873e5
commit 109aa3b2fb
6 changed files with 129 additions and 0 deletions
+8
View File
@@ -618,3 +618,11 @@ func sortKey(ps *PeerStatus) string {
raw := ps.PublicKey.Raw32()
return string(raw[:])
}
// DebugDERPRegionReport is the result of a "tailscale debug derp" command,
// to let people debug a custom DERP setup.
type DebugDERPRegionReport struct {
Info []string
Warnings []string
Errors []string
}