Josh Bleecher Snyder
a5da4ed981
all: gofmt with Go 1.17
...
This adds "//go:build" lines and tidies up existing "// +build" lines.
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2021-08-05 15:54:00 -07:00
Brad Fitzpatrick
33bc69cf1f
paths: fall back to XDG_DATA_HOME for non-root users' state dir
...
So peerapi has a default state directory, mostly for netstack mode
testing.
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2021-03-30 08:21:14 -07:00
Brad Fitzpatrick
54e108ff4e
paths: update some default paths for darwin
2021-02-13 12:10:20 -08:00
David Anderson
dbc99dc0d2
paths: use /var/db for state on BSDs, and /var/run for sockets.
...
On BSD, /var/db is what linux calls /var/lib.
On modern linux, /run and /var/run are the same directory, but
on BSD the correct path is /var/run, so use that.
Fixes #79
Signed-off-by: David Anderson <dave@natulte.net>
2020-03-03 17:49:31 -08:00
Brad Fitzpatrick
383d86df5f
paths: remove some debug logging I left in
2020-03-03 11:45:49 -08:00
Brad Fitzpatrick
65e7c58aa4
cmd/tailscale, cmd/tailscaled, paths: add paths package for default paths
...
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2020-03-03 09:36:18 -08:00