Fix iPhone opening screen showing servers found before Tailscale starts

This commit is contained in:
Ian Gulliver
2026-10-23 07:58:59 -07:00
parent 48f2ef3ade
commit caf5b123d2
+4 -3
View File
@@ -560,9 +560,10 @@ struct ServerWindow: View {
return steps
}
let name = serverName(connection.origin.absoluteString)
steps.append(SetupStep(name: "Find byre servers", status: .done, detail: "Found \(name)"))
var connect = SetupStep(name: "Connect to \(name)", status: ready ? .active : .todo)
if ready, case .failed(let problem) = connection.phase {
let found = ready && tailnet.reachable(connection.origin)
steps.append(found ? SetupStep(name: "Find byre servers", status: .done, detail: "Found \(name)") : SetupStep(name: "Find byre servers", status: ready ? .active : .todo))
var connect = SetupStep(name: "Connect to \(name)", status: found ? .active : .todo)
if found, case .failed(let problem) = connection.phase {
connect.detail = "Retrying: \(problem)"
}
steps.append(connect)