From: Michael Tremer Date: Wed, 10 Dec 2025 17:09:04 +0000 (+0000) Subject: sources: Remove leading *. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2e1f64beb94533c0d6677d4010f5769fdc9680b;p=dbl.git sources: Remove leading *. Some lists store domains with a leading *. which we can simply remove. Signed-off-by: Michael Tremer --- diff --git a/src/dnsbl/sources.py b/src/dnsbl/sources.py index 76e8fef..7edef26 100644 --- a/src/dnsbl/sources.py +++ b/src/dnsbl/sources.py @@ -214,6 +214,9 @@ class Source(sqlmodel.SQLModel, database.BackendMixin, table=True): if not domain: continue + # Remove any leading "*." + domain = domain.removeprefix("*.") + # Skip any invalid domain names if not util.is_fqdn(domain): log.warning(_("Skipping invalid domain: %s") % domain)