Skip to content

Commit 7418a61

Browse files
altonennathanwhit
authored andcommitted
Inject FromSwarm::NewListenAddr to mDNS (paritytech#14478)
1 parent 20f981f commit 7418a61

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

client/network/src/discovery.rs

+4
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)