safesocket: add FreeBSD to PlatformUsesPeerCreds

FreeBSD is supported by peercred now.

Signed-off-by: Denton Gentry <dgentry@tailscale.com>
This commit is contained in:
Denton Gentry 2021-03-03 11:41:32 -08:00 committed by Denton Gentry
parent 6756f20632
commit 524fb2c190

View File

@ -70,7 +70,7 @@ func LocalTCPPortAndToken() (port int, token string, err error) {
// to authenticate connections. // to authenticate connections.
func PlatformUsesPeerCreds() bool { func PlatformUsesPeerCreds() bool {
switch runtime.GOOS { switch runtime.GOOS {
case "linux", "darwin": case "linux", "darwin", "freebsd":
return true return true
} }
return false return false