mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-01 00:33:43 +00:00

This reverts commit 0267fe83b200f1702a2fa0a395442c02a053fadb. Reason: it converted the tree to Windows line endings. Updates #14299 Change-Id: I2271a61d43e99bd0bbcf9f4831e8783e570ba08a Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
22 lines
629 B
Go
22 lines
629 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
// Package licenses provides utilities for working with open source licenses.
|
|
package licenses
|
|
|
|
import "runtime"
|
|
|
|
// LicensesURL returns the absolute URL containing open source license information for the current platform.
|
|
func LicensesURL() string {
|
|
switch runtime.GOOS {
|
|
case "android":
|
|
return "https://tailscale.com/licenses/android"
|
|
case "darwin", "ios":
|
|
return "https://tailscale.com/licenses/apple"
|
|
case "windows":
|
|
return "https://tailscale.com/licenses/windows"
|
|
default:
|
|
return "https://tailscale.com/licenses/tailscale"
|
|
}
|
|
}
|