Skip to content

Commit

Permalink
missing destination on init_routing_table
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianTremblay committed Sep 16, 2024
1 parent cc69ef7 commit 642a41f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions BAC0/core/functions/Alias.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <addr>
Expand All @@ -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,
Expand Down

0 comments on commit 642a41f

Please sign in to comment.