]> git.ipfire.org Git - dbl.git/commitdiff
dnsbl: Fix the history output on the console
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 5 Jan 2026 18:21:21 +0000 (18:21 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 5 Jan 2026 18:21:21 +0000 (18:21 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scripts/dnsbl.in

index cd4007984a3010b12cb500451e1cd24d016a63b7..9a438c2150666beb2b75dc3292e6c64eba70aa92 100644 (file)
@@ -589,14 +589,16 @@ class CLI(object):
 
                # Add the header
                table.add_column(_("Timestamp"))
-               table.add_column(_("Domains Added"))
+               table.add_column(_("Domains Blocked"))
+               table.add_column(_("Domains Allowed"))
                table.add_column(_("Domains Removed"))
 
                # Add the history
                for events in history:
                        table.add_row(
                                babel.dates.format_datetime(events.ts),
-                               "\n".join(events.domains_added),
+                               "\n".join(events.domains_blocked),
+                               "\n".join(events.domains_allowed),
                                "\n".join(events.domains_removed),
                        )