fix(connlib): only disable not-yet-disabled resources (#8525)

Didn't test this but I think the logic checks out (and our proptests
should catch any bugs here).

Fixes: #8523
This commit is contained in:
Thomas Eizinger
2025-03-27 11:36:39 +11:00
committed by GitHub
parent f13234955a
commit aa957be538

View File

@@ -965,8 +965,9 @@ impl ClientState {
self.add_resource(resource.clone());
}
for disabled_resource in &new_disabled_resources {
self.disable_resource(*disabled_resource);
for new_disabled_resource in new_disabled_resources.difference(&current_disabled_resources)
{
self.disable_resource(*new_disabled_resource);
}
self.maybe_update_cidr_resources();