summaryrefslogtreecommitdiffhomepage
path: root/cmd/tailscaled/debug.go
AgeCommit message (Collapse)AuthorFilesLines
2021-03-25Revert "cmd/tailscaled: split package main into main shim + package"Brad Fitzpatrick1-0/+172
This reverts commit b81bd8025b71f35295201d18011855c1cfae630e. Not needed. See: https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module
2021-03-24cmd/tailscaled: split package main into main shim + packageBrad Fitzpatrick1-172/+0
So we can empty import the guts of cmd/tailscaled from another module for go mod tidy reasons. Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-03-08cmd/tailscaled: fix monitor debug tool's outputBrad Fitzpatrick1-1/+1
Logic was backwards, introduced in earlier monitor refactoring last week in e3df29d488f5ce50e. Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-03-01wgengine{,/monitor}: move interface state fetching/comparing to monitorBrad Fitzpatrick1-10/+9
Gets it out of wgengine so the Engine isn't responsible for being a callback registration hub for it. This also removes the Engine.LinkChange method, as it's no longer necessary. The monitor tells us about changes; it doesn't seem to need any help. (Currently it was only used by Swift, but as of 14dc79013754fe we just do the same from Go) Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-02-27wgengine/monitor: change API to permit multiple independent callbakcksBrad Fitzpatrick1-4/+5
Currently it assumes exactly 1 registered callback. This changes it to support 0, 1, or more than 1. This is a step towards plumbing wgengine/monitor into more places (and moving some of wgengine's interface state fetching into monitor in a later step) Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-02-14cmd/tailscaled: fix up install-system-daemon on darwin, add uninstall tooBrad Fitzpatrick1-0/+2
Tangentially related to #987, #177, #594, #925, #505
2021-02-04cmd/tailscale{,d}: move debug subcommand to tailscaledBrad Fitzpatrick1-0/+170
Work on reducing the size of the tailscale binary, which is currently pulling in most of the same code as tailscaled. Updates #1181