chore(connlib): log IPs assigned by stub resolver (#6752)

This only happens once for each domain, so logging this on DEBUG should
be fine. It is disabled by default and shouldn't be too spammy during
development.
This commit is contained in:
Thomas Eizinger
2024-09-18 10:11:36 -04:00
committed by GitHub
parent 43b8a97ee1
commit 5593c0aa1c

View File

@@ -150,10 +150,11 @@ impl StubResolver {
.fqdn_to_ips
.entry(fqdn.clone())
.or_insert_with(|| {
// TODO: the side effeccts are executed even if this is not inserted
// make it so that's not the case
let mut ips = self.ip_provider.get_n_ipv4(4);
ips.extend_from_slice(&self.ip_provider.get_n_ipv6(4));
tracing::debug!(domain = %fqdn, ?ips, "Assigning proxy IPs");
ips
})
.clone();