chore(gateway): include domain in "not allowed" log (#10863)

The resource could be a wildcard DNS resource. It is useful to know,
which particular domain the client tried to access.
This commit is contained in:
Thomas Eizinger
2025-11-12 14:37:03 +11:00
committed by GitHub
parent 94985a7b77
commit 32e1c088e7

View File

@@ -687,7 +687,7 @@ fn handle_assigned_ips_event(
};
if !peer.is_allowed(req.resource) {
tracing::warn!(cid = %peer.id(), rid = %req.resource, "Received `AssignedIpsEvent` for resource that is not allowed");
tracing::warn!(cid = %peer.id(), rid = %req.resource, domain = %req.domain, "Received `AssignedIpsEvent` for resource that is not allowed");
let packet = dns_resource_nat::domain_status(
req.resource,