feat: add rescan dead domains checkbox to validator

Adds rescan_dead flag that causes _filter_unvalidated to treat
previously-dead domains as needing a fresh check. Useful after
fixing the http/https detection bug.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-19 20:12:59 +02:00
parent ae2fad0152
commit f8ab910eca
3 changed files with 27 additions and 11 deletions

View File

@@ -177,8 +177,8 @@ async def enriched(
# ── Bulk Validator endpoints ──────────────────────────────────────────────────
@app.post("/api/validator/start")
async def validator_start(tld: str = Query(None)):
start_validator(tld_filter=tld or None)
async def validator_start(tld: str = Query(None), rescan_dead: bool = Query(False)):
start_validator(tld_filter=tld or None, rescan_dead=rescan_dead)
return get_validator_status()