mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-12 11:14:24 +00:00
Wait for the tailscale clients to be ready in the web auth CreateHeadscaleEnv
Signed-off-by: Juan Font Alonso <juanfontalonso@gmail.com>
This commit is contained in:
parent
f176503448
commit
ad3c36fd07
@ -129,6 +129,12 @@ func (s *AuthWebFlowScenario) runTailscaleUp(
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("failed to register client: %s", err)
|
log.Printf("failed to register client: %s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
err = c.WaitForReady()
|
||||||
|
if err != nil {
|
||||||
|
log.Printf("error waiting for client %s to be ready: %s", c.Hostname(), err)
|
||||||
|
}
|
||||||
|
|
||||||
}(client)
|
}(client)
|
||||||
}
|
}
|
||||||
namespace.joinWaitGroup.Wait()
|
namespace.joinWaitGroup.Wait()
|
||||||
|
Loading…
Reference in New Issue
Block a user