mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-25 07:46:49 +09:00
Always attempt to parse login url
This commit is contained in:
1 parent
45cb0f3fa3
commit
5d7eae46f8
1 file changed
+1
-4
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user