mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-10 18:13:41 +00:00
2c07f5dfcd
Remove the platform specificity, it is unnecessary complexity. Deduplicate repeated code as a result of reduced complexity. Split out error identification code. Update call-sites and tests. Updates #14551 Updates tailscale/corp#25648 Signed-off-by: James Tucker <james@tailscale.com>
13 lines
339 B
Go
13 lines
339 B
Go
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
//go:build plan9
|
|
|
|
package magicsock
|
|
|
|
// shouldRebind returns if the error is one that is known to be healed by a
|
|
// rebind, and if so also returns a resason string for the rebind.
|
|
func shouldRebind(err error) (ok bool, reason string) {
|
|
return false, ""
|
|
}
|