You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
478 B
23 lines
478 B
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build cgo || !darwin
|
|
|
|
// systray is a minimal Tailscale systray application.
|
|
package main
|
|
|
|
import (
|
|
"flag"
|
|
|
|
"tailscale.com/client/local"
|
|
"tailscale.com/client/systray"
|
|
"tailscale.com/paths"
|
|
)
|
|
|
|
var socket = flag.String("socket", paths.DefaultTailscaledSocket(), "path to tailscaled socket")
|
|
|
|
func main() {
|
|
flag.Parse()
|
|
lc := &local.Client{Socket: *socket}
|
|
new(systray.Menu).Run(lc)
|
|
}
|
|
|