osVariant returns the OS variant string for systems where we support multiple ways of running tailscale(d), if any. For example: "appstore", "macsys", "darwin".
()
| 236 | // |
| 237 | // For example: "appstore", "macsys", "darwin". |
| 238 | func osVariant() string { |
| 239 | if IsMacAppStore() { |
| 240 | return "appstore" |
| 241 | } |
| 242 | if IsMacSys() { |
| 243 | return "macsys" |
| 244 | } |
| 245 | if runtime.GOOS == "darwin" { |
| 246 | return "darwin" |
| 247 | } |
| 248 | return "" |
| 249 | } |
| 250 | |
| 251 | var isDev = sync.OnceValue(func() bool { |
| 252 | return strings.Contains(Short(), "-dev") |
no test coverage detected
searching dependent graphs…