Skip to content

Commit 642a41f

Browse files
missing destination on init_routing_table
1 parent cc69ef7 commit 642a41f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

BAC0/core/functions/Alias.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ async def whois_router_to_network(
105105
)
106106
return []
107107

108-
async def init_routing_table(self, address):
108+
async def init_routing_table(self, address=None):
109109
"""
110110
irt <addr>
111111
@@ -116,7 +116,9 @@ async def init_routing_table(self, address):
116116
self.log(f"Addr : {address}", level="info")
117117
_this_application: BAC0Application = self.this_application
118118
_app: Application = _this_application.app
119-
await _app.nse.initialize_routing_table()
119+
if address is not None and not isinstance(address, Address):
120+
address = Address(address)
121+
await _app.nse.initialize_routing_table(destination=address)
120122

121123
async def use_router(
122124
self,

0 commit comments

Comments
 (0)