agent v0.3.17: correction statut Tailscale + overlay de reconnexion pendant l'update
This commit is contained in:
+3
-5
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user