mirror of
https://github.com/tailscale/tailscale.git
synced 2026-03-31 20:52:07 -04:00
ipn/ipnserver: use peercreds for actor.Username on freebsd (for Taildrive)
Signed-off-by: Adrian Cybulski <adrian@cybulski.cc>
This commit is contained in:
@@ -145,7 +145,7 @@ func (a *actor) Username() (string, error) {
|
||||
}
|
||||
defer tok.Close()
|
||||
return tok.Username()
|
||||
case "darwin", "linux", "illumos", "solaris", "openbsd":
|
||||
case "darwin", "linux", "illumos", "solaris", "openbsd", "freebsd":
|
||||
creds := a.ci.Creds()
|
||||
if creds == nil {
|
||||
return "", errors.New("peer credentials not implemented on this OS")
|
||||
|
||||
Reference in New Issue
Block a user