This commit is contained in:
bluepython508 committed 2026-10-22 12:27:19 +01:00
1 parent 3530afb854
commit 6903fcff27
2146 files changed
+112256 -190703

No files matched your search

+27
View File
@@ -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"
)