mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-24 16:58:05 +00:00
Always attempt to parse login url
This commit is contained in:
parent
45cb0f3fa3
commit
5d7eae46f8
@ -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…
x
Reference in New Issue
Block a user