mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-09 08:01:31 +00:00
ipn/ipnlocal: make StartLoginInteractive take (yet unused) context
In prep for future fix to undermentioned issue. Updates tailscale/tailscale#7036 Change-Id: Ide114db917dcba43719482ffded6a9a54630d99e Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:

committed by
Brad Fitzpatrick

parent
9171b217ba
commit
7ec0dc3834
@@ -597,7 +597,9 @@ func (s *Server) start() (reterr error) {
|
||||
st := lb.State()
|
||||
if st == ipn.NeedsLogin || envknob.Bool("TSNET_FORCE_LOGIN") {
|
||||
logf("LocalBackend state is %v; running StartLoginInteractive...", st)
|
||||
s.lb.StartLoginInteractive()
|
||||
if err := s.lb.StartLoginInteractive(s.shutdownCtx); err != nil {
|
||||
return fmt.Errorf("StartLoginInteractive: %w", err)
|
||||
}
|
||||
} else if authKey != "" {
|
||||
logf("Authkey is set; but state is %v. Ignoring authkey. Re-run with TSNET_FORCE_LOGIN=1 to force use of authkey.", st)
|
||||
}
|
||||
|
Reference in New Issue
Block a user