Skip to content

Commit

Permalink
fix websocket output URL from agent
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechromancer committed Sep 25, 2023
1 parent 6918978 commit 1d92059
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bbot/agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,7 @@ async def start_scan(self, scan_id, name=None, targets=[], modules=[], output_mo
f"Starting scan with targets={targets}, modules={modules}, output_modules={output_modules}"
)
output_module_config = OmegaConf.create(
{
"output_modules": {
"websocket": {"url": f"{self.url}/control/scan/{scan_id}/", "token": self.token}
}
}
{"output_modules": {"websocket": {"url": f"{self.url}/scan/{scan_id}/", "token": self.token}}}
)
config = OmegaConf.create(config)
config = OmegaConf.merge(self.config, config, output_module_config)
Expand Down

0 comments on commit 1d92059

Please sign in to comment.