(hosts map[dnsname.FQDN][]netip.Addr)
| 288 | } |
| 289 | |
| 290 | func (c *configMaps) setHosts(hosts map[dnsname.FQDN][]netip.Addr) { |
| 291 | c.L.Lock() |
| 292 | defer c.L.Unlock() |
| 293 | c.hosts = make(map[dnsname.FQDN][]netip.Addr) |
| 294 | for name, addrs := range hosts { |
| 295 | c.hosts[name] = slices.Clone(addrs) |
| 296 | } |
| 297 | c.netmapDirty = true |
| 298 | c.Broadcast() |
| 299 | } |
| 300 | |
| 301 | // setBlockEndpoints sets whether we should block configuring endpoints we learn |
| 302 | // from peers. It triggers a configuration of the engine if the value changes. |