hostsLocked returns the current DNS hosts mapping. c.L must be held.
()
| 235 | |
| 236 | // hostsLocked returns the current DNS hosts mapping. c.L must be held. |
| 237 | func (c *configMaps) hostsLocked() map[dnsname.FQDN][]netip.Addr { |
| 238 | return maps.Clone(c.hosts) |
| 239 | } |
| 240 | |
| 241 | // peerConfigLocked returns the set of peer nodes we have. c.L must be held. |
| 242 | func (c *configMaps) peerConfigLocked() []*tailcfg.Node { |