|
|
@ -654,7 +654,7 @@ func (c *Direct) PollNetMap(ctx context.Context, maxPolls int, cb func(*NetworkM
|
|
|
|
Peers: resp.Peers,
|
|
|
|
Peers: resp.Peers,
|
|
|
|
LocalPort: localPort,
|
|
|
|
LocalPort: localPort,
|
|
|
|
User: resp.Node.User,
|
|
|
|
User: resp.Node.User,
|
|
|
|
UserProfiles: make(map[tailcfg.UserID]tailcfg.UserProfile),
|
|
|
|
UserProfiles: resp.UserProfiles,
|
|
|
|
Domain: resp.Domain,
|
|
|
|
Domain: resp.Domain,
|
|
|
|
DNS: resp.DNSConfig,
|
|
|
|
DNS: resp.DNSConfig,
|
|
|
|
Hostinfo: resp.Node.Hostinfo,
|
|
|
|
Hostinfo: resp.Node.Hostinfo,
|
|
|
@ -662,9 +662,6 @@ func (c *Direct) PollNetMap(ctx context.Context, maxPolls int, cb func(*NetworkM
|
|
|
|
DERPMap: lastDERPMap,
|
|
|
|
DERPMap: lastDERPMap,
|
|
|
|
Debug: resp.Debug,
|
|
|
|
Debug: resp.Debug,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for _, profile := range resp.UserProfiles {
|
|
|
|
|
|
|
|
nm.UserProfiles[profile.ID] = profile
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if resp.Node.MachineAuthorized {
|
|
|
|
if resp.Node.MachineAuthorized {
|
|
|
|
nm.MachineStatus = tailcfg.MachineAuthorized
|
|
|
|
nm.MachineStatus = tailcfg.MachineAuthorized
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|