Update
This commit is contained in:
1 parent
3530afb854
commit
6903fcff27
2146 files changed
+112256
-190703
No files matched your search
+2
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// Copyright (c) Tailscale Inc & contributors
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
package tsconst
|
||||
@@ -23,4 +23,5 @@ const (
|
||||
HealthWarnableTestWarnable = "test-warnable"
|
||||
HealthWarnableApplyDiskConfig = "apply-disk-config"
|
||||
HealthWarnableWarmingUp = "warming-up"
|
||||
HealthWarnableTLSCertPending = "tls-cert-pending"
|
||||
)
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// Copyright (c) Tailscale Inc & contributors
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
package tsconst
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
// Copyright (c) Tailscale Inc & contributors
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
package tsconst
|
||||
|
||||
import "time"
|
||||
|
||||
const (
|
||||
// DefaultPingTimeout is the default time we wait for a pong reply
|
||||
// before assuming it's never coming.
|
||||
DefaultPingTimeout = 5 * time.Second
|
||||
|
||||
// DefaultPingInterval is the default minimum time
|
||||
// between pings to an endpoint.
|
||||
DefaultPingInterval = 5 * time.Second
|
||||
)
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// Copyright (c) Tailscale Inc & contributors
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
// Package tsconst exports some constants used elsewhere in the
|
||||
@@ -10,6 +10,6 @@ package tsconst
|
||||
const WintunInterfaceDesc = "Tailscale Tunnel"
|
||||
const WintunInterfaceDesc0_14 = "Wintun Userspace Tunnel"
|
||||
|
||||
// TailnetLockNotTrustedMsg is the error message used by network lock
|
||||
// TailnetLockNotTrustedMsg is the error message used by tailnet lock
|
||||
// and sniffed (via substring) out of an error sent over the network.
|
||||
const TailnetLockNotTrustedMsg = "this node is not trusted by network lock"
|
||||
const TailnetLockNotTrustedMsg = "this node is not trusted by Tailnet Lock"
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) Tailscale Inc & AUTHORS
|
||||
// Copyright (c) Tailscale Inc & contributors
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
package tsconst
|
||||
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
// Copyright (c) Tailscale Inc & contributors
|
||||
// SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
package tsconst
|
||||
|
||||
// WindowsMode is how tailscaled is being run on Windows, as given by its
|
||||
// --windows-mode flag. It decides where tailscaled listens for the CLI and
|
||||
// GUI and who may connect.
|
||||
type WindowsMode string
|
||||
|
||||
const (
|
||||
// WindowsModeDefault is the default: tailscaled is the Tailscale service
|
||||
// (running as LocalSystem), or an administrator running tailscaled.exe by
|
||||
// hand in its place. It must listen on the default named pipe under
|
||||
// \\.\pipe\ProtectedPrefix\Administrators\, which only administrators
|
||||
// can create; that is what lets clients trust it. It serves every local
|
||||
// user, with per-user access decided by tailscaled itself.
|
||||
WindowsModeDefault WindowsMode = ""
|
||||
|
||||
// WindowsModeDev is a developer running tailscaled by hand, possibly
|
||||
// without administrator rights. It listens by default on a per-user
|
||||
// named pipe, \\.\pipe\tailscale-<SID>, which is created owned by and
|
||||
// accessible to that user alone, and the CLI falls back to that pipe
|
||||
// when the default one doesn't exist. Nothing about it is trusted by
|
||||
// other users, and it can't serve them.
|
||||
WindowsModeDev WindowsMode = "dev"
|
||||
)
|
||||
Reference in new issue
Block a user