summaryrefslogtreecommitdiffhomepage
path: root/control/controlclient/netmap.go
AgeCommit message (Collapse)AuthorFilesLines
2020-03-25cmd/relaynode: delete it!Avery Pennarun1-51/+0
tailscale+tailscaled now completely obsoletes relaynode, so let's let it finally go away.
2020-03-24control/controlclient: add TODO to delete the UAPI methodBrad Fitzpatrick1-0/+2
2020-03-19control/controlclient: don't use Node as value typeBrad Fitzpatrick1-1/+1
2020-03-19tailcfg, controlclient: standardize on wgcfg ShortString key printingDavid Crawshaw1-15/+6
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
2020-03-14controlclient: use per-peer KeepAlive signalDavid Crawshaw1-3/+1
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
2020-03-13control/controlclient: remove a number literal in string slice offsetBrad Fitzpatrick1-2/+3
2020-03-12Fix staticcheck complaint.Avery Pennarun1-1/+1
2020-03-12controlclient/netmap: write our own b.ConciseDiffFrom(a) function.Avery Pennarun1-0/+28
This removes the need for go-cmp, which is extremely bloaty so we had to leave it out of iOS. As a result, we had also left it out of macOS, and so we didn't print netmap diffs at all on darwin-based platforms. Oops. As a bonus, the output format of the new function is way better. Minor oddity: because I used the dumbest possible diff algorithm, the sort order is a bit dumb. We print all "removed" lines and then print all "added" lines, rather than doing the usual diff-like thing of interspersing them. This probably doesn't matter (maybe it's an improvement).
2020-03-12controlclient: reformat netmap.Concise() and add DERP server info.Avery Pennarun1-10/+29
The .Concise() view had grown hard to read over time. Originally, we assumed a peer almost always had just one endpoint and one-or-more allowedips. With magicsock, we now almost always have multiple endpoints per peer. And empirically, almost every peer has only one allowedip. Change their order so we can line up allowedips vertically. Also do some tweaking to make multiple endpoints easier to read. While we're here, add a column to show the home DERP server of each peer, if any.
2020-03-02controlclient, tailcfg: deliver DERP addresses in a separate fieldDavid Crawshaw1-6/+11
We still include them directly in the controlclient network map just where we have been. Client plumbing we can do later. Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
2020-03-02version: add IsMobile funcBrad Fitzpatrick1-5/+3
And use it control/controlclient.
2020-02-10controlclient: remove unused function.David Anderson1-7/+0
Signed-off-by: David Anderson <dave@natulte.net>
2020-02-09Move Linux client & common packages into a public repo.Earl Lee1-0/+294