diff --git a/BAC0/core/functions/Alias.py b/BAC0/core/functions/Alias.py index bd729b9..4e88751 100644 --- a/BAC0/core/functions/Alias.py +++ b/BAC0/core/functions/Alias.py @@ -105,7 +105,7 @@ async def whois_router_to_network( ) return [] - async def init_routing_table(self, address): + async def init_routing_table(self, address=None): """ irt @@ -116,7 +116,9 @@ async def init_routing_table(self, address): self.log(f"Addr : {address}", level="info") _this_application: BAC0Application = self.this_application _app: Application = _this_application.app - await _app.nse.initialize_routing_table() + if address is not None and not isinstance(address, Address): + address = Address(address) + await _app.nse.initialize_routing_table(destination=address) async def use_router( self,