Skip to content

Commit a94b190

Browse files
fix another bug
1 parent edf9619 commit a94b190

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

bbot_server/modules/targets/targets_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -358,17 +358,17 @@ async def _check_scope(self, host, resolved_hosts, target: BBOTTarget, target_id
358358
try:
359359
# we take the main host and its A/AAAA DNS records into account
360360
for rdtype, hosts in resolved_hosts.items():
361-
for host in hosts:
361+
for h in hosts:
362362
# if any of the hosts are blacklisted, abort immediately
363-
if target.blacklisted(host):
364-
blacklisted_reason = f"{rdtype}->{host}"
363+
if target.blacklisted(h):
364+
blacklisted_reason = f"{rdtype}->{h}"
365365
in_target_reason = ""
366366
# break out of the loop
367367
raise BlacklistedError
368368
# check against whitelist
369369
if not in_target_reason:
370-
if target.in_target(host):
371-
in_target_reason = f"{rdtype}->{host}"
370+
if target.in_target(h):
371+
in_target_reason = f"{rdtype}->{h}"
372372
except BlacklistedError:
373373
pass
374374

0 commit comments

Comments
 (0)