mirror of
https://github.com/tailscale/tailscale.git
synced 2025-01-08 09:07:44 +00:00
paths: add synology socket path
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
This commit is contained in:
parent
98d7c28faa
commit
2b5b36ec63
@ -26,6 +26,13 @@ func DefaultTailscaledSocket() string {
|
|||||||
if runtime.GOOS == "darwin" {
|
if runtime.GOOS == "darwin" {
|
||||||
return "/var/run/tailscaled.socket"
|
return "/var/run/tailscaled.socket"
|
||||||
}
|
}
|
||||||
|
if runtime.GOOS == "linux" {
|
||||||
|
// TODO(crawshaw): does this path change with DSM7?
|
||||||
|
const synologySock = "/volume1/@appstore/Tailscale/var/tailscaled.sock" // SYNOPKG_PKGDEST in scripts/installer
|
||||||
|
if fi, err := os.Stat(filepath.Dir(synologySock)); err == nil && fi.IsDir() {
|
||||||
|
return synologySock
|
||||||
|
}
|
||||||
|
}
|
||||||
if fi, err := os.Stat("/var/run"); err == nil && fi.IsDir() {
|
if fi, err := os.Stat("/var/run"); err == nil && fi.IsDir() {
|
||||||
return "/var/run/tailscale/tailscaled.sock"
|
return "/var/run/tailscale/tailscaled.sock"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user