agent v0.3.17: correction statut Tailscale + overlay de reconnexion pendant l'update

This commit is contained in:
EduBox Dev
2026-06-28 20:03:49 +00:00
parent 41929be34c
commit d2c3edea2f
3 changed files with 62 additions and 21 deletions
+3 -5
View File
@@ -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()