079924d19a
- Removing the primary machine hands pipelines/runs to the next saved machine on native hosts; removing the last machine returns to the connect screen instead of stranding the app on "Server endpoint not configured". - Add server probes the new machine and asks for its own password in the same page; Settings rows show Connected / Sign in required / Unreachable with the reason and offer Sign in; no other machine's credential is ever reused. - Unreachable addresses explain why: a TLS failure against an IP points at the Tailscale name, a non-Pipelines answer points at the port. - Discovered machines list every advertised route (LAN, Tailscale IP, Tailscale name) as a checklist; chosen routes are saved as one machine. - tool/connection_probe.dart replays the native login and websocket against real addresses for diagnosis.
18 lines
659 B
Dart
18 lines
659 B
Dart
/// What one GET of a server's web login page found.
|
|
///
|
|
/// [status] is the HTTP status when the page answered, null when the request
|
|
/// failed; [failure] then says why in words. [loginPage] is true when a 200
|
|
/// body is the Pipelines sign-in form rather than some other service on that
|
|
/// port.
|
|
class LoginProbe {
|
|
const LoginProbe({this.status, this.failure, this.loginPage = false});
|
|
|
|
final int? status;
|
|
final String? failure;
|
|
final bool loginPage;
|
|
|
|
/// The Pipelines sign-in form's markers (web/serve.mjs loginPage).
|
|
static bool isPipelinesLogin(String body) =>
|
|
body.contains('action="/login"') && body.contains('name="password"');
|
|
}
|