Development
This commit is contained in:
parent
bf4e7175cb
commit
e2e05010bb
1 changed files with 2 additions and 1 deletions
|
|
@ -86,6 +86,7 @@ Usage:
|
||||||
import hashlib
|
import hashlib
|
||||||
import ipaddress
|
import ipaddress
|
||||||
import json
|
import json
|
||||||
|
import logging
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
@ -923,7 +924,7 @@ def main():
|
||||||
die("This script must be run as root (sudo).")
|
die("This script must be run as root (sudo).")
|
||||||
general = data.get("dns_blocking", {}).get("general", {})
|
general = data.get("dns_blocking", {}).get("general", {})
|
||||||
dnsmasq.setup_blocklist_logging(general)
|
dnsmasq.setup_blocklist_logging(general)
|
||||||
print("Merging blocklists ==================================================")
|
logging.info("Merging blocklists ==================================================")
|
||||||
success = dnsmasq.update_blocklist_hosts(data)
|
success = dnsmasq.update_blocklist_hosts(data)
|
||||||
print()
|
print()
|
||||||
if success:
|
if success:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue