fix: macOS auto bind loopback-first

This commit is contained in:
Peter Steinberger
2026-01-22 06:34:41 +00:00
parent 98ab2b4eae
commit 30ca87094d
4 changed files with 6 additions and 8 deletions

View File

@@ -309,7 +309,7 @@ private func resolveLocalHost(bind: String?) -> String {
let normalized = (bind ?? "").trimmingCharacters(in: .whitespacesAndNewlines).lowercased()
let tailnetIP = detectTailnetIPv4()
switch normalized {
case "tailnet", "auto":
case "tailnet":
return tailnetIP ?? "127.0.0.1"
default:
return "127.0.0.1"