ipn/ipnlocal: call initTKALocked on backend start

Signed-off-by: Tom DNetto <tom@tailscale.com>
This commit is contained in:
Tom DNetto 2022-11-22 10:48:07 -08:00 committed by Tom
parent 1ef4be2f86
commit b45b948776

View File

@ -1287,6 +1287,10 @@ func (b *LocalBackend) Start(opts ipn.Options) error {
b.cc = cc
b.ccAuto, _ = cc.(*controlclient.Auto)
endpoints := b.endpoints
if err := b.initTKALocked(); err != nil {
b.logf("initTKALocked: %v", err)
}
var tkaHead string
if b.tka != nil {
head, err := b.tka.authority.Head().MarshalText()