ipn: add missing entries for OpenBSD

Signed-off-by: Juan Francisco Cantero Hurtado <jfch@30041993.xyz>
This commit is contained in:
Juan Francisco Cantero Hurtado 2025-06-17 20:22:42 +02:00 committed by Brad Fitzpatrick
parent 4431fb89c2
commit cbc14bd3b0
2 changed files with 2 additions and 2 deletions

View File

@ -443,7 +443,7 @@ func findCmdTailscale() (string, error) {
} }
case "windows": case "windows":
ts = filepath.Join(filepath.Dir(self), "tailscale.exe") ts = filepath.Join(filepath.Dir(self), "tailscale.exe")
case "freebsd": case "freebsd", "openbsd":
if self == "/usr/local/bin/tailscaled" { if self == "/usr/local/bin/tailscaled" {
ts = "/usr/local/bin/tailscale" ts = "/usr/local/bin/tailscale"
} }

View File

@ -144,7 +144,7 @@ func (a *actor) Username() (string, error) {
} }
defer tok.Close() defer tok.Close()
return tok.Username() return tok.Username()
case "darwin", "linux", "illumos", "solaris": case "darwin", "linux", "illumos", "solaris", "openbsd":
uid, ok := a.ci.Creds().UserID() uid, ok := a.ci.Creds().UserID()
if !ok { if !ok {
return "", errors.New("missing user ID") return "", errors.New("missing user ID")