Function
_safe_resolve
(resolver, name: str, rdtype: str)
Source from the content-addressed store, hash-verified
| 589 | state = self.get_scan_state(scan_id) |
| 590 | if not state: |
| 591 | return list(subdomains) |
| 592 | target_host, _ = _split_host_port(state.target, default_port=443) |
| 593 | target_domain = _registrable_domain(target_host) |
| 594 | if not target_domain or force: |
| 595 | return [] |
| 596 | violations = [] |
| 597 | for sub in subdomains: |
| 598 | sub_domain = _registrable_domain(sub) |
| 599 | if sub_domain != target_domain: |
| 600 | violations.append(sub) |
Tested by
no test coverage detected