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

Method wireguardAddresses

agent/agent.go:1699–1707  ·  view source on GitHub ↗
(agentID uuid.UUID)

Source from the content-addressed store, hash-verified

1697}
1698
1699func (*agent) wireguardAddresses(agentID uuid.UUID) []netip.Prefix {
1700 return []netip.Prefix{
1701 // This is the IP that should be used primarily.
1702 tailnet.TailscaleServicePrefix.PrefixFromUUID(agentID),
1703 // We'll need this address for CoderVPN, but aren't using it from clients until that feature
1704 // is ready
1705 tailnet.CoderServicePrefix.PrefixFromUUID(agentID),
1706 }
1707}
1708
1709func (a *agent) trackGoroutine(fn func()) error {
1710 a.closeMutex.Lock()

Callers 2

createOrUpdateNetworkMethod · 0.95
createTailnetMethod · 0.95

Calls 1

PrefixFromUUIDMethod · 0.80

Tested by

no test coverage detected