Skip to content

v0.6.4

Choose a tag to compare

@d0zingcat d0zingcat released this 13 May 22:48
· 5 commits to main since this release
972d36b

Bug Fixes

  • Discover Tailscale IP from network interfaces instead of relying on CLI — when the daemon runs as root via launchd, the Mac App Store Tailscale CLI often cannot communicate with the user-session tailscaled. Instead of depending solely on the CLI, the daemon now scans network interfaces for an IPv4 address in the Tailscale CGNAT range (100.64.0.0/10). This works regardless of privilege level or Tailscale install method. The CLI is still used as a fallback, trying all known binary paths in sequence.

Details

  • internal/tailscale: New ipFromInterface() function checks all active network interfaces for a CGNAT-range IP before attempting any CLI invocation.
  • internal/tailscale: candidates() replaces findBinary() — returns all available CLI paths (deduped) with standalone/homebrew binaries prioritized over the App bundle CLI.
  • internal/tailscale: IPv4() now tries interface detection first, then iterates all CLI candidates until one succeeds, providing better error context on failure.
  • internal/tailscale: Available() returns true if either an interface IP or a CLI binary is found.