diff options
| author | Xe Iaso <me@xeiaso.net> | 2023-06-18 08:40:56 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2023-06-18 08:40:56 -0400 |
| commit | 8d7856674e15086f347fbd7469e784017bc3d91a (patch) | |
| tree | 3706135d32a6b72e7ddb56a281760aa13b04be96 /cmd | |
| parent | 42dca02c6ef470fc733b87412c1a31d1ff26be5d (diff) | |
| download | x-8d7856674e15086f347fbd7469e784017bc3d91a.tar.xz x-8d7856674e15086f347fbd7469e784017bc3d91a.zip | |
cmd/xedn: add app hostinfo
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/xedn/main.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/xedn/main.go b/cmd/xedn/main.go index 812dbe9..fb9c739 100644 --- a/cmd/xedn/main.go +++ b/cmd/xedn/main.go @@ -25,6 +25,7 @@ import ( "github.com/sebest/xff" "go.etcd.io/bbolt" "golang.org/x/sync/singleflight" + "tailscale.com/hostinfo" "tailscale.com/metrics" "tailscale.com/tsnet" "tailscale.com/tsweb" @@ -368,6 +369,8 @@ func main() { internal.HandleStartup() ctx := opname.With(context.Background(), "startup") + hostinfo.SetApp("within.website/x/cmd/xedn") + os.MkdirAll(filepath.Join(*dir, "tsnet"), 0700) db, err := bbolt.Open(filepath.Join(*dir, "data"), 0600, &bbolt.Options{}) |
