hostinfo_tvos.go 265 B

12345678910111213141516
  1. //go:build with_gvisor && tvos
  2. package tailscale
  3. import (
  4. _ "unsafe"
  5. "github.com/sagernet/tailscale/types/lazy"
  6. )
  7. //go:linkname isAppleTV github.com/sagernet/tailscale/version.isAppleTV
  8. var isAppleTV lazy.SyncValue[bool]
  9. func init() {
  10. isAppleTV.Set(true)
  11. }