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