|
|
|
|
@ -11,9 +11,15 @@ import ( |
|
|
|
|
"runtime" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
// LegacyConfigPath is the path used by the pre-tailscaled "relaynode"
|
|
|
|
|
// daemon's config file.
|
|
|
|
|
const LegacyConfigPath = "/var/lib/tailscale/relay.conf" |
|
|
|
|
// LegacyConfigPath returns the path used by the pre-tailscaled
|
|
|
|
|
// "relaynode" daemon's config file. It returns the empty string for
|
|
|
|
|
// platforms where relaynode never ran.
|
|
|
|
|
func LegacyConfigPath() string { |
|
|
|
|
if runtime.GOOS == "windows" { |
|
|
|
|
return "" |
|
|
|
|
} |
|
|
|
|
return "/var/lib/tailscale/relay.conf" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// DefaultTailscaledSocket returns the path to the tailscaled Unix socket
|
|
|
|
|
// or the empty string if there's no reasonable default.
|
|
|
|
|
|