Always attempt to parse login url

This commit is contained in:
Juan Font Alonso 2022-11-04 00:04:04 +01:00
parent 45cb0f3fa3
commit 5d7eae46f8

View file

@ -170,10 +170,7 @@ func (t *TailscaleInContainer) UpWithLoginURL(
t.hostname,
}
_, stderr, err := t.Execute(command)
if err != errTailscaleNotLoggedIn {
return nil, errTailscaleCannotUpWithoutAuthkey
}
_, stderr, _ := t.Execute(command)
urlStr := strings.ReplaceAll(stderr, "\nTo authenticate, visit:\n\n\t", "")
urlStr = strings.TrimSpace(urlStr)