fix(macos): prefer tailnet ip for auto bind

This commit is contained in:
Peter Steinberger
2026-01-21 02:28:18 +00:00
parent e81ca7ab00
commit 778800be70
3 changed files with 117 additions and 7 deletions

View File

@@ -556,7 +556,10 @@ actor GatewayEndpointStore {
case "tailnet":
tailscaleIP ?? "127.0.0.1"
case "auto":
"127.0.0.1"
if let tailscaleIP, !tailscaleIP.isEmpty {
return tailscaleIP
}
return "127.0.0.1"
case "custom":
customBindHost ?? "127.0.0.1"
default: