Brad Fitzpatrick
fb67d8311c
cmd/tailscale: pull out, parameterize up FlagSet creation for tests
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-05-03 09:23:55 -07:00
David Crawshaw
e67f1b5da0
client/tailscale, cmd/tailscale/cli: plumb --socket through
...
Without this, `tailscale status` ignores the --socket flag on macOS and
always talks to the IPNExtension, even if you wanted it to inspect a
userspace tailscaled.
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
2021-03-30 10:09:14 -07:00
Denton Gentry
524fb2c190
safesocket: add FreeBSD to PlatformUsesPeerCreds
...
FreeBSD is supported by peercred now.
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2021-03-03 15:33:13 -08:00
Brad Fitzpatrick
be779b3587
safesocket, ipn/ipnserver: unify peercred info, fix bug on FreeBSD etc
...
FreeBSD wasn't able to run "tailscale up" since the recent peercred
refactoring.
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-03-02 11:23:26 -08:00
Brad Fitzpatrick
dec01ef22b
safesocket: make ConnectDefault use paths pkg, fixing tailscaled-on-macOS
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-02-15 11:33:12 -08:00
Brad Fitzpatrick
914a486af6
safesocket: refactor macOS auth code, pull out separate LocalTCPPortAndToken
2021-01-29 14:34:57 -08:00
Brad Fitzpatrick
60e189f699
cmd/hello: use safesocket client to connect
2021-01-29 13:49:17 -08:00
Brad Fitzpatrick
04e6b77774
safesocket: delete incorrect build tag
...
Leftover from copying one file to another to create safesocket.go
in the earlier documentation change (29f7d64091
).
2020-02-25 09:02:52 -08:00
Brad Fitzpatrick
29f7d64091
safesocket: document
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2020-02-25 08:46:34 -08:00