|
|
@ -2839,7 +2839,9 @@ func (b *LocalBackend) tryLookupUserName(uid string) string {
|
|
|
|
// up the in-progress flow where it left off.
|
|
|
|
// up the in-progress flow where it left off.
|
|
|
|
func (b *LocalBackend) StartLoginInteractive() {
|
|
|
|
func (b *LocalBackend) StartLoginInteractive() {
|
|
|
|
b.mu.Lock()
|
|
|
|
b.mu.Lock()
|
|
|
|
b.assertClientLocked()
|
|
|
|
if b.cc == nil {
|
|
|
|
|
|
|
|
panic("LocalBackend.assertClient: b.cc == nil")
|
|
|
|
|
|
|
|
}
|
|
|
|
b.interact = true
|
|
|
|
b.interact = true
|
|
|
|
url := b.authURL
|
|
|
|
url := b.authURL
|
|
|
|
timeSinceAuthURLCreated := b.clock.Since(b.authURLTime)
|
|
|
|
timeSinceAuthURLCreated := b.clock.Since(b.authURLTime)
|
|
|
@ -4729,13 +4731,6 @@ func (b *LocalBackend) Logout(ctx context.Context) error {
|
|
|
|
return b.resetForProfileChangeLockedOnEntry(unlock)
|
|
|
|
return b.resetForProfileChangeLockedOnEntry(unlock)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// assertClientLocked crashes if there is no controlclient in this backend.
|
|
|
|
|
|
|
|
func (b *LocalBackend) assertClientLocked() {
|
|
|
|
|
|
|
|
if b.cc == nil {
|
|
|
|
|
|
|
|
panic("LocalBackend.assertClient: b.cc == nil")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// setNetInfo sets b.hostinfo.NetInfo to ni, and passes ni along to the
|
|
|
|
// setNetInfo sets b.hostinfo.NetInfo to ni, and passes ni along to the
|
|
|
|
// controlclient, if one exists.
|
|
|
|
// controlclient, if one exists.
|
|
|
|
func (b *LocalBackend) setNetInfo(ni *tailcfg.NetInfo) {
|
|
|
|
func (b *LocalBackend) setNetInfo(ni *tailcfg.NetInfo) {
|
|
|
|