From 4fc6bf504e19ff7629c37c6109534b8b342c451c Mon Sep 17 00:00:00 2001 From: Eugene Burkov Date: Mon, 18 Dec 2023 14:43:08 +0300 Subject: [PATCH] Pull request 2108: 6541 hosts nodata Updates #6541. Squashed commit of the following: commit e79507f6a7850cc3af316f0e46c289a84882ae15 Merge: 1a09de91d d32832735 Author: Eugene Burkov Date: Mon Dec 18 14:29:21 2023 +0300 Merge branch 'master' into 6541-hosts-nodata commit 1a09de91dc211e03a104ee7c58b7ea39498b73dd Author: Eugene Burkov Date: Thu Dec 14 18:24:56 2023 +0300 filtering: separate files commit e00d1d26c79c85d9266ccdb5e5b4c4a4fde2c90c Author: Eugene Burkov Date: Thu Dec 14 18:00:52 2023 +0300 filtering: fix hosts nodata --- CHANGELOG.md | 3 + internal/filtering/dnsrewrite_test.go | 170 ----------------------- internal/filtering/filtering.go | 79 ----------- internal/filtering/hosts.go | 94 +++++++++++++ internal/filtering/hosts_test.go | 191 ++++++++++++++++++++++++++ 5 files changed, 288 insertions(+), 249 deletions(-) create mode 100644 internal/filtering/hosts.go create mode 100644 internal/filtering/hosts_test.go diff --git a/CHANGELOG.md b/CHANGELOG.md index afe12018..65f60b6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,10 +33,13 @@ NOTE: Add new changes BELOW THIS COMMENT. ### Fixed +- Names defined in the `/etc/hosts` for a single address family wrongly + considered undefined for another family ([#6541]). - Omitted CNAME records in safe search results, which can cause YouTube to not work on iOS ([#6352]). [#6352]: https://github.com/AdguardTeam/AdGuardHome/issues/6352 +[#6541]: https://github.com/AdguardTeam/AdGuardHome/issues/6541 [#6545]: https://github.com/AdguardTeam/AdGuardHome/issues/6545