MCPcopy Index your code
hub / github.com/coder/coder / hostsLocked

Method hostsLocked

tailnet/configmaps.go:237–239  ·  view source on GitHub ↗

hostsLocked returns the current DNS hosts mapping. c.L must be held.

()

Source from the content-addressed store, hash-verified

235
236// hostsLocked returns the current DNS hosts mapping. c.L must be held.
237func (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.
242func (c *configMaps) peerConfigLocked() []*tailcfg.Node {

Callers 1

configLoopMethod · 0.95

Calls 1

CloneMethod · 0.45

Tested by

no test coverage detected