chore: remove legacy AgentIP address (#14640)

Removes the support for the Agent's "legacy IP" which was a hardcoded IP address all agents used to use, before we introduced "single tailnet". Single tailnet went GA in 2.7.0.
This commit is contained in:
Spike Curtis
2024-09-12 07:40:19 +04:00
committed by GitHub
parent 6a846cdbb8
commit fb3523b37f
5 changed files with 1 additions and 93 deletions
-3
View File
@@ -1119,9 +1119,6 @@ func (a *agent) wireguardAddresses(agentID uuid.UUID) []netip.Prefix {
return []netip.Prefix{
// This is the IP that should be used primarily.
netip.PrefixFrom(tailnet.IPFromUUID(agentID), 128),
// We also listen on the legacy codersdk.WorkspaceAgentIP. This
// allows for a transition away from wsconncache.
netip.PrefixFrom(workspacesdk.AgentIP, 128),
}
}