From 7418a61ff9a4b4f41fc58ada3d5d9d9415263bc7 Mon Sep 17 00:00:00 2001 From: Aaro Altonen <48052676+altonen@users.noreply.github.com> Date: Thu, 29 Jun 2023 18:28:32 +0300 Subject: [PATCH] Inject `FromSwarm::NewListenAddr` to mDNS (#14478) --- client/network/src/discovery.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/network/src/discovery.rs b/client/network/src/discovery.rs index 42dc934ef7776..b6cb29584658f 100644 --- a/client/network/src/discovery.rs +++ b/client/network/src/discovery.rs @@ -663,6 +663,10 @@ impl NetworkBehaviour for DiscoveryBehaviour { }, FromSwarm::NewListenAddr(e) => { self.kademlia.on_swarm_event(FromSwarm::NewListenAddr(e)); + + if let Some(ref mut mdns) = self.mdns { + mdns.on_swarm_event(FromSwarm::NewListenAddr(e)); + } }, } }