(agentID uuid.UUID)
| 1697 | } |
| 1698 | |
| 1699 | func (*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 | |
| 1709 | func (a *agent) trackGoroutine(fn func()) error { |
| 1710 | a.closeMutex.Lock() |
no test coverage detected