feat: make MikroTik blocklist cumulative via git history

This commit is contained in:
zwitschi committed 2026-08-06 13:21:02 +02:00
1 parent c131759a7c
commit 894a2eec33
12 files changed
+3582 -129

No files matched your search

+6 -1
View File
@@ -348,7 +348,12 @@ def create_app() -> Flask:
@app.post("/api/firewall/apply")
def firewall_apply():
"""Apply the blocklist sync (add new / remove stale entries)."""
"""Apply the blocklist sync (cumulative — adds new entries only).
The blocklist is grow-only: it adds entries present in the complete
set (git history + working files + scan targets) and only prunes
router entries never seen in any git version of the blocklist files.
"""
return _sync_firewall(dry_run=False)
# --- whitelist ---------------------------------------------------------