From c3f141a0a8788e8ffc6ce42db65022835193ce7d Mon Sep 17 00:00:00 2001 From: Eugene Burkov Date: Thu, 28 Sep 2023 19:11:11 +0300 Subject: [PATCH] Pull request 2018: 6231 filter local addrs Merge in DNS/adguard-home from 6231-filter-local-addrs to master Updates #6231. Squashed commit of the following: commit 9a60d4e33f25c7dd7eaa4366d8397389196156ac Author: Eugene Burkov Date: Thu Sep 28 18:59:51 2023 +0300 dnsforward: imp code commit f0c3452525c227b0ee6e761c4a6b68543900d5b5 Author: Eugene Burkov Date: Wed Sep 27 18:12:47 2023 +0300 all: don't match nets commit 572dc0f24e74560adaa4d89ddc921dfd7e1fed02 Author: Eugene Burkov Date: Wed Sep 27 13:37:48 2023 +0300 dnsforward: move some code, rm dups commit 3af627ce9c7f6f4d2aa695a7660b8a0027fa241c Author: Eugene Burkov Date: Mon Sep 25 19:21:05 2023 +0300 dnsforward: imp naming commit cad1e4e71662836d1dfc79bc2979599b7a29fea1 Author: Eugene Burkov Date: Mon Sep 25 19:17:53 2023 +0300 dnsforward: imp code commit 23d69700789d5652bd25cc089f16afb8b38e51f8 Author: Eugene Burkov Date: Mon Sep 25 19:08:48 2023 +0300 dnsforward: add upstream matcher commit 5819c594a2a8d8bf2cd42883133e21ca7ed2681a Author: Eugene Burkov Date: Fri Sep 22 18:31:37 2023 +0300 all: imp code, docs commit d07ea96bb568161e029e22d69329a368d9eeb729 Author: Eugene Burkov Date: Fri Sep 22 18:09:09 2023 +0300 all: imp code commit 38a912a62c63247c4c5bb61b67ccc9bfd255feff Author: Eugene Burkov Date: Fri Sep 22 15:48:25 2023 +0300 all: imp code commit 811212fa16bc231a8da990c075d7231c471c7e3b Author: Eugene Burkov Date: Thu Sep 21 19:05:07 2023 +0300 all: imp addrs detection --- CHANGELOG.md | 3 + internal/aghnet/net.go | 35 ++++-- internal/aghnet/net_internal_test.go | 12 ++- internal/aghnet/net_test.go | 78 ++++++++++++++ internal/aghnet/systemresolvers_windows.go | 2 +- internal/dnsforward/config.go | 120 +++++++++++++++++++++ internal/dnsforward/dnsforward.go | 59 +--------- internal/dnsforward/http.go | 25 ++++- internal/dnsforward/upstreams.go | 25 ++++- 9 files changed, 284 insertions(+), 75 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 184a1cec..45dd9dbf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,9 +32,12 @@ NOTE: Add new changes BELOW THIS COMMENT. ### Fixed +- Wrong algorithm for filtering self addresses from the list of private upstream + DNS servers ([#6231]). - An accidental change in DNS rewrite priority ([#6226]). [#6226]: https://github.com/AdguardTeam/AdGuardHome/issues/6226 +[#6231]: https://github.com/AdguardTeam/AdGuardHome/issues/6231