We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc69ef7 commit 642a41fCopy full SHA for 642a41f
BAC0/core/functions/Alias.py
@@ -105,7 +105,7 @@ async def whois_router_to_network(
105
)
106
return []
107
108
- async def init_routing_table(self, address):
+ async def init_routing_table(self, address=None):
109
"""
110
irt <addr>
111
@@ -116,7 +116,9 @@ async def init_routing_table(self, address):
116
self.log(f"Addr : {address}", level="info")
117
_this_application: BAC0Application = self.this_application
118
_app: Application = _this_application.app
119
- await _app.nse.initialize_routing_table()
+ if address is not None and not isinstance(address, Address):
120
+ address = Address(address)
121
+ await _app.nse.initialize_routing_table(destination=address)
122
123
async def use_router(
124
self,
0 commit comments