From 4d2b8787e0279eb55ecb2bf70a66a329279f1975 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Fri, 7 Nov 2025 14:33:20 +0000 Subject: [PATCH] chore(dns): replace UNBLOCK with DNS_UNBLOCK_HOSTNAMES --- Dockerfile | 2 +- internal/configuration/settings/dnsblacklist.go | 2 +- maintenance.md | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 699f4dab..89625123 100644 --- a/Dockerfile +++ b/Dockerfile @@ -177,7 +177,7 @@ ENV VPN_SERVICE_PROVIDER=pia \ BLOCK_MALICIOUS=on \ BLOCK_SURVEILLANCE=off \ BLOCK_ADS=off \ - UNBLOCK= \ + DNS_UNBLOCK_HOSTNAMES= \ DNS_UPDATE_PERIOD=24h \ DNS_ADDRESS=127.0.0.1 \ DNS_KEEP_NAMESERVER=off \ diff --git a/internal/configuration/settings/dnsblacklist.go b/internal/configuration/settings/dnsblacklist.go index 0d770329..44a2c319 100644 --- a/internal/configuration/settings/dnsblacklist.go +++ b/internal/configuration/settings/dnsblacklist.go @@ -154,7 +154,7 @@ func (b *DNSBlacklist) read(r *reader.Reader) (err error) { return err } - b.AllowedHosts = r.CSV("UNBLOCK") // TODO v4 change name + b.AllowedHosts = r.CSV("DNS_UNBLOCK_HOSTNAMES", reader.RetroKeys("UNBLOCK")) return nil } diff --git a/maintenance.md b/maintenance.md index 6282b738..efc8d571 100644 --- a/maintenance.md +++ b/maintenance.md @@ -1,6 +1,5 @@ # Maintenance -- Rename `UNBLOCK` to `DNS_HOSTNAMES_UNBLOCKED` - Change `Run` methods to `Start`+`Stop`, returning channels rather than injecting them - Go 1.18 - gofumpt