mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-28 03:07:35 +00:00
17 lines
237 B
Go
17 lines
237 B
Go
![]() |
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])
|
||
|
}
|
||
|
}
|