summaryrefslogtreecommitdiffhomepage
path: root/cmd/tailscaled/main.go
blob: 5b37f08dcc5e3ec51f9e0dc83f142fdfdc9e0dec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package main

import (
	"os"
	"strings"
)

func main() {
	if strings.HasSuffix(os.Args[0], "tailscaled") {
		tailscaled_main()
	} else if strings.HasSuffix(os.Args[0], "tailscale") {
		tailscale_main()
	} else {
		panic(os.Args[0])
	}
}