From 8d453e75a457bd0f6048e7e01ce7ca6f73779a0b Mon Sep 17 00:00:00 2001 From: Ainar Garipov Date: Thu, 8 Dec 2022 16:27:10 +0300 Subject: [PATCH] Pull request: 5238-default-filter-urls Updates #5238. Squashed commit of the following: commit 6a1b58bfa0f0bb8cc924e294485e8f650ce7f7aa Author: Ainar Garipov Date: Thu Dec 8 14:18:54 2022 +0300 all: upd go in github actions commit 98366880dc32290258dfae152be069cb84ed86c6 Author: Ainar Garipov Date: Thu Dec 8 14:08:36 2022 +0300 home: sync default filter urls --- .github/workflows/build.yml | 2 +- .github/workflows/lint.yml | 2 +- CHANGELOG.md | 11 +++++++++++ internal/home/config.go | 9 +++++++-- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 224fc42c..6f74b13e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,7 +1,7 @@ 'name': 'build' 'env': - 'GO_VERSION': '1.18.8' + 'GO_VERSION': '1.18.9' 'NODE_VERSION': '14' 'on': diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d1dc8163..ce89779f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,7 +1,7 @@ 'name': 'lint' 'env': - 'GO_VERSION': '1.18.8' + 'GO_VERSION': '1.18.9' 'on': 'push': diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c0dd347..131e4558 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,17 @@ See also the [v0.107.21 GitHub milestone][ms-v0.107.21]. [ms-v0.107.21]: https://github.com/AdguardTeam/AdGuardHome/milestone/57?closed=1 --> +### Changed + +- The URLs of the default filters for new installations are synchrhonized to + those introduced in v0.107.20 ([#5238]). + + **NOTE:** Some users may need to re-add the lists from the vetted filter lists + to update the URLs to the new ones. Custom filters added by users themselves + do not require re-adding. + +[#5238]: https://github.com/AdguardTeam/AdGuardHome/issues/5238 + ## [v0.107.20] - 2022-12-07 diff --git a/internal/home/config.go b/internal/home/config.go index c7198d93..ddefd61e 100644 --- a/internal/home/config.go +++ b/internal/home/config.go @@ -278,15 +278,20 @@ var config = &configuration{ PortDNSOverTLS: defaultPortTLS, // needs to be passed through to dnsproxy PortDNSOverQUIC: defaultPortQUIC, }, + // NOTE: Keep these parameters in sync with the one put into + // client/src/helpers/filters/filters.js by scripts/vetted-filters. + // + // TODO(a.garipov): Think of a way to make scripts/vetted-filters update + // these as well if necessary. Filters: []filtering.FilterYAML{{ Filter: filtering.Filter{ID: 1}, Enabled: true, - URL: "https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt", + URL: "https://adguardteam.github.io/HostlistsRegistry/assets/filter_1.txt", Name: "AdGuard DNS filter", }, { Filter: filtering.Filter{ID: 2}, Enabled: false, - URL: "https://adaway.org/hosts.txt", + URL: "https://adguardteam.github.io/HostlistsRegistry/assets/filter_2.txt", Name: "AdAway Default Blocklist", }}, DHCP: &dhcpd.ServerConfig{