revert(connlib): don't return old IPs for DNS resource (#5435) (#5437)

This turns out to break things because we can no longer associate a
working but outdated IP with the DNS resource. Putting this up here in
case we want to merge a fix before we decide on a different one.

Reverts: #5435.
This commit is contained in:
Thomas Eizinger
2024-06-20 03:20:17 +10:00
committed by GitHub
parent 8d74f2ae8e
commit 42eb997ea8

View File

@@ -748,17 +748,6 @@ impl ClientState {
})
.collect();
// First, remove all IPs for this particular resource.
{
for (_, resources) in self.dns_resources_internal_ips.values_mut() {
resources.remove(&resource_description);
}
self.dns_resources_internal_ips
.retain(|_, (_, resources)| !resources.is_empty());
}
// Second, add the new IPs.
for addr in addrs.clone() {
self.dns_resources_internal_ips
.entry(addr)