feat: attached mdns instance with host

This commit is contained in:
sumanjeet0012@gmail.com
2025-06-25 23:44:32 +05:30
parent 28d0e5759a
commit f274d20715
5 changed files with 23 additions and 9 deletions

View File

@ -18,8 +18,10 @@ from libp2p.peer.peerinfo import (
class RoutedHost(BasicHost):
_router: IPeerRouting
def __init__(self, network: INetworkService, router: IPeerRouting):
super().__init__(network)
def __init__(
self, network: INetworkService, router: IPeerRouting, enable_mDNS: bool = False
):
super().__init__(network, enable_mDNS)
self._router = router
async def connect(self, peer_info: PeerInfo) -> None: