Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit a95c9b3

Browse files
authored
Inject FromSwarm::NewListenAddr to mDNS (#14478)
1 parent 5d0fd14 commit a95c9b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

client/network/src/discovery.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,10 @@ impl NetworkBehaviour for DiscoveryBehaviour {
663663
},
664664
FromSwarm::NewListenAddr(e) => {
665665
self.kademlia.on_swarm_event(FromSwarm::NewListenAddr(e));
666+
667+
if let Some(ref mut mdns) = self.mdns {
668+
mdns.on_swarm_event(FromSwarm::NewListenAddr(e));
669+
}
666670
},
667671
}
668672
}

0 commit comments

Comments
 (0)