From 125c4eaed7a6965de0b73ac6e1bd1d50009bc8c5 Mon Sep 17 00:00:00 2001 From: Djeex Date: Sun, 1 Jun 2025 11:11:43 +0000 Subject: [PATCH] fixed yaml dns entry --- README.md | 1 - blocklist_scheduler.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 2649fe5..b7666fd 100644 --- a/README.md +++ b/README.md @@ -140,7 +140,6 @@ 3. **Build and start the container** ```bash - docker compose build docker compose up -d ``` 4. **Check logs to verify updates** diff --git a/blocklist_scheduler.py b/blocklist_scheduler.py index 12e6199..15333e8 100644 --- a/blocklist_scheduler.py +++ b/blocklist_scheduler.py @@ -84,7 +84,7 @@ def update_yaml_with_ips(ips): logging.error(f"Failed to parse YAML file {ADGUARD_YAML}") return False - data['disallowed_clients'] = ips + data['dns']['disallowed_clients'] = ips with TMP_YAML.open('w') as f: yaml.safe_dump(data, f)