]> git.ipfire.org Git - dbl.git/commit
sources: Rework the hosts file parser
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 2 Jan 2026 14:11:46 +0000 (14:11 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 2 Jan 2026 14:11:46 +0000 (14:11 +0000)
commita286913c45fc70e58662e2a286c27cdcbdd6cbf1
tree0a369583069f3ae8ef5fdbf1fb530390c8a4fab7
parentabc7cacafdec2c0f5a09655f0d0d4d6788223e0a
sources: Rework the hosts file parser

Some sources use tabs to split and since we don't want to have a large
list of IP addresses, we simply check if we now have a format where we
list an IP address and something else.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/dnsbl/sources.py