mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-30 02:43:05 +00:00
Always attempt to parse login url
This commit is contained in:
parent
45cb0f3fa3
commit
5d7eae46f8
1 changed files with 1 additions and 4 deletions
|
@ -170,10 +170,7 @@ func (t *TailscaleInContainer) UpWithLoginURL(
|
||||||
t.hostname,
|
t.hostname,
|
||||||
}
|
}
|
||||||
|
|
||||||
_, stderr, err := t.Execute(command)
|
_, stderr, _ := t.Execute(command)
|
||||||
if err != errTailscaleNotLoggedIn {
|
|
||||||
return nil, errTailscaleCannotUpWithoutAuthkey
|
|
||||||
}
|
|
||||||
|
|
||||||
urlStr := strings.ReplaceAll(stderr, "\nTo authenticate, visit:\n\n\t", "")
|
urlStr := strings.ReplaceAll(stderr, "\nTo authenticate, visit:\n\n\t", "")
|
||||||
urlStr = strings.TrimSpace(urlStr)
|
urlStr = strings.TrimSpace(urlStr)
|
||||||
|
|
Loading…
Reference in a new issue