[api] Detect Tailscale IP and expose it #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "task/5bcd399a-detect-tailscale-ip-and-expo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implemented by Claude Code agent
Task: On startup and on-demand, detect the Tailscale IP (parse
tailscale status --jsonor read from /proc). Expose via GET /api/system/network. Cache with 60s TTL. Fallback to local IP if Tailscale isn't running.Success Criteria:
GET /api/system/network returns {tailscale_ip, local_ip, hostname}. Branch preview URLs are constructed as http://{tailscale_ip}:{port}. Works when Tailscale is up, degrades gracefully when it's not.
⚠️ Review score: 69/100 — BELOW threshold (85) — needs manual review
Detects Tailscale IP via `tailscale status --json`, falls back to local IP when Tailscale isn't running. Caches results with 60s TTL. Returns {tailscale_ip, local_ip, hostname} for constructing branch preview URLs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>Pull request closed