ipn/ipnlocal: add support for multiple user profiles
Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
+2
-2
@@ -16,13 +16,13 @@ type FakeBackend struct {
|
||||
}
|
||||
|
||||
func (b *FakeBackend) Start(opts Options) error {
|
||||
b.serverURL = opts.Prefs.ControlURLOrDefault()
|
||||
b.serverURL = opts.LegacyMigrationPrefs.ControlURLOrDefault()
|
||||
if b.notify == nil {
|
||||
panic("FakeBackend.Start: SetNotifyCallback not called")
|
||||
}
|
||||
nl := NeedsLogin
|
||||
if b.notify != nil {
|
||||
p := opts.Prefs.View()
|
||||
p := opts.LegacyMigrationPrefs.View()
|
||||
b.notify(Notify{Prefs: &p})
|
||||
b.notify(Notify{State: &nl})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user