From d2c3edea2f6adbf5e541d9fc5fac1ddd7ada056d Mon Sep 17 00:00:00 2001 From: EduBox Dev Date: Sun, 28 Jun 2026 20:03:49 +0000 Subject: [PATCH] agent v0.3.17: correction statut Tailscale + overlay de reconnexion pendant l'update --- agent/VERSION | 2 +- agent/tailscale.go | 8 ++--- agent/ui/index.html | 73 +++++++++++++++++++++++++++++++++++---------- 3 files changed, 62 insertions(+), 21 deletions(-) diff --git a/agent/VERSION b/agent/VERSION index ec96a62..e5a9958 100644 --- a/agent/VERSION +++ b/agent/VERSION @@ -1 +1 @@ -0.3.16 +0.3.17 diff --git a/agent/tailscale.go b/agent/tailscale.go index 91135ef..41a1644 100644 --- a/agent/tailscale.go +++ b/agent/tailscale.go @@ -214,12 +214,10 @@ func getTailscaleIP() string { } // isTailscaleReady reports whether tailscaled is running and has successfully -// joined the tailnet (i.e. it has a Tailscale IP). This is a stronger check -// than isTailscaleRunning which only verifies the process exists. +// joined the tailnet (i.e. it has a Tailscale IP). It does not rely on +// isTailscaleRunning because tailscaled may have been started by a previous +// agent run or externally; the important thing is that the socket responds. func isTailscaleReady() bool { - if !isTailscaleRunning() { - return false - } tsCmdMu.Lock() socket := tsSocket tsCmdMu.Unlock() diff --git a/agent/ui/index.html b/agent/ui/index.html index f05170f..8c8ab47 100644 --- a/agent/ui/index.html +++ b/agent/ui/index.html @@ -608,9 +608,10 @@ + + +