Skip to content

Commit

Permalink
fix scope accuracy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Aug 2, 2024
1 parent 2d3dfcf commit ed01510
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bbot/modules/httpx.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async def filter_event(self, event):
in_scope_only = self.config.get("in_scope_only", True)
if "httpx-safe" in event.tags:
return True
max_scope_distance = 0 if in_scope_only else 1
max_scope_distance = 0 if in_scope_only else (self.scan.scope_search_distance + 1)
if event.scope_distance > max_scope_distance:
return False, "event is not in scope"
return True
Expand All @@ -95,7 +95,6 @@ def make_url_metadata(self, event):
return url, url_hash

def _incoming_dedup_hash(self, event):

url, url_hash = self.make_url_metadata(event)
return url_hash

Expand Down

0 comments on commit ed01510

Please sign in to comment.