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 return steps
} }
let name = serverName(connection.origin.absoluteString) let name = serverName(connection.origin.absoluteString)
steps.append(SetupStep(name: "Find byre servers", status: .done, detail: "Found \(name)")) let found = ready && tailnet.reachable(connection.origin)
var connect = SetupStep(name: "Connect to \(name)", status: ready ? .active : .todo) steps.append(found ? SetupStep(name: "Find byre servers", status: .done, detail: "Found \(name)") : SetupStep(name: "Find byre servers", status: ready ? .active : .todo))
if ready, case .failed(let problem) = connection.phase { var connect = SetupStep(name: "Connect to \(name)", status: found ? .active : .todo)
if found, case .failed(let problem) = connection.phase {
connect.detail = "Retrying: \(problem)" connect.detail = "Retrying: \(problem)"
} }
steps.append(connect) steps.append(connect)