Fix iPhone opening screen showing servers found before Tailscale starts
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user