mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user