Skip to content

Commit

Permalink
Inject FromSwarm::NewListenAddr to mDNS (paritytech#14478)
Browse files Browse the repository at this point in the history
  • Loading branch information
altonen authored and nathanwhit committed Jul 19, 2023
1 parent 20f981f commit 7418a61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/network/src/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
},
}
}
Expand Down

0 comments on commit 7418a61

Please sign in to comment.