mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-01 14:05:39 +00:00
paths: set QNAP socket to /tmp.
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
This commit is contained in:
parent
57124e2126
commit
7c4d017636
@ -37,6 +37,8 @@ func DefaultTailscaledSocket() string {
|
|||||||
return "/var/packages/Tailscale/var/tailscaled.sock"
|
return "/var/packages/Tailscale/var/tailscaled.sock"
|
||||||
case distro.Gokrazy:
|
case distro.Gokrazy:
|
||||||
return "/perm/tailscaled/tailscaled.sock"
|
return "/perm/tailscaled/tailscaled.sock"
|
||||||
|
case distro.QNAP:
|
||||||
|
return "/tmp/tailscale/tailscaled.sock"
|
||||||
}
|
}
|
||||||
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…
Reference in New Issue
Block a user