mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 21:27:31 +00:00
wgengine/router: report to control when setPrivateNetwork fails
Fixes #1503 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:

committed by
Brad Fitzpatrick

parent
ba8c6d0775
commit
232cfda280
@@ -56,6 +56,12 @@ func SetRouterHealth(err error) { set("router", err) }
|
||||
// RouterHealth returns the wgengine/router.Router error state.
|
||||
func RouterHealth() error { return get("router") }
|
||||
|
||||
// SetNetworkCategoryHealth sets the state of setting the network adaptor's category.
|
||||
// This only applies on Windows.
|
||||
func SetNetworkCategoryHealth(err error) { set("network-category", err) }
|
||||
|
||||
func NetworkCategoryHealth() error { return get("network-category") }
|
||||
|
||||
func get(key string) error {
|
||||
mu.Lock()
|
||||
defer mu.Unlock()
|
||||
|
Reference in New Issue
Block a user