mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-02 01:51:59 +00:00
tailcfg: add Node.UnsignedPeerAPIOnly to let server mark node as peerapi-only
capver 48 Change-Id: I20b2fa81d61ef8cc8a84e5f2afeefb68832bd904 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
3367136d9e
commit
e55ae53169
@@ -72,6 +72,10 @@ const (
|
||||
// the Windows network adapter's "category" (public, private, domain).
|
||||
// If it's unhealthy, the Windows firewall rules won't match.
|
||||
SysNetworkCategory = Subsystem("network-category")
|
||||
|
||||
// SysValidUnsignedNodes is a health check area for recording problems
|
||||
// with the unsigned nodes that the coordination server sent.
|
||||
SysValidUnsignedNodes = Subsystem("valid-unsigned-nodes")
|
||||
)
|
||||
|
||||
type watchHandle byte
|
||||
@@ -99,6 +103,9 @@ func RegisterWatcher(cb func(key Subsystem, err error)) (unregister func()) {
|
||||
}
|
||||
}
|
||||
|
||||
// SetValidUnsignedNodes sets the state of the map response validation.
|
||||
func SetValidUnsignedNodes(err error) { set(SysValidUnsignedNodes, err) }
|
||||
|
||||
// SetRouterHealth sets the state of the wgengine/router.Router.
|
||||
func SetRouterHealth(err error) { set(SysRouter, err) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user