Fix some Hostinfo value usages from the previous commit.

This commit is contained in:
Brad Fitzpatrick
2020-02-25 11:01:20 -08:00
parent d8de11a01b
commit 758744a4e3
3 changed files with 9 additions and 4 deletions

View File

@ -325,6 +325,11 @@ func (b *LocalBackend) runPoller() {
}
b.mu.Lock()
if b.hiCache == nil {
// TODO(bradfitz): it's a little weird that this port poller
// is started (by NewLocalBackend) before the Start call.
b.hiCache = new(tailcfg.Hostinfo)
}
hi := b.hiCache
hi.Services = sl
b.hiCache = hi