From 642a41fafa12d1a9aa850c2a5c36680d38470845 Mon Sep 17 00:00:00 2001 From: "Christian Tremblay, ing." Date: Sun, 15 Sep 2024 20:04:00 -0400 Subject: [PATCH] missing destination on init_routing_table --- BAC0/core/functions/Alias.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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,