Inject FromSwarm::NewListenAddr to mDNS (#14478)

This commit is contained in:
Aaro Altonen authored and GitHub committed 2023-06-29 17:28:32 +02:00
1 parent ff7e8b6b17
commit 0e58bd91b6
1 file changed
+4
@@ -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));
}
},
}
}