From 7bfad08ddec0ff2308c7d5f9bd730ed2e586170a Mon Sep 17 00:00:00 2001 From: Ainar Garipov Date: Tue, 18 Jul 2023 17:02:07 +0300 Subject: [PATCH] Pull request 1927: 6006-use-address-processor Updates #6006. Squashed commit of the following: commit ac27db95c12858b6ef182a0bd4acebab67a23993 Author: Ainar Garipov Date: Tue Jul 18 15:47:17 2023 +0300 all: imp code commit 3936288512bfc2d44902ead6ab1bb5711f92b73c Author: Ainar Garipov Date: Mon Jul 17 19:23:46 2023 +0300 all: imp client resolving --- CHANGELOG.md | 3 + internal/dnsforward/config.go | 12 +- internal/dnsforward/dialcontext.go | 57 ++++++ internal/dnsforward/dnsforward.go | 86 +++++---- internal/dnsforward/dnsforward_test.go | 92 +++------ internal/dnsforward/filter.go | 8 +- internal/dnsforward/http.go | 9 +- internal/dnsforward/{dns.go => process.go} | 63 ++++--- .../{dns_test.go => process_internal_test.go} | 123 ++++++++++-- internal/dnsforward/upstreams.go | 10 +- internal/home/clients.go | 41 +++- ...ients_test.go => clients_internal_test.go} | 16 +- internal/home/config.go | 8 +- internal/home/dns.go | 177 +++--------------- internal/home/home.go | 88 +-------- internal/home/httpclient.go | 47 +++++ 16 files changed, 443 insertions(+), 397 deletions(-) create mode 100644 internal/dnsforward/dialcontext.go rename internal/dnsforward/{dns.go => process.go} (94%) rename internal/dnsforward/{dns_test.go => process_internal_test.go} (87%) rename internal/home/{clients_test.go => clients_internal_test.go} (94%) create mode 100644 internal/home/httpclient.go diff --git a/CHANGELOG.md b/CHANGELOG.md index fb6c12b1..3c43ed5c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,8 @@ NOTE: Add new changes BELOW THIS COMMENT. ### Fixed +- Occasional client information lookup failures that could lead to the DNS + server getting stuck ([#6006]). - `bufio.Scanner: token too long` and other errors when trying to add filtering-rule lists with lines over 1024 bytes long or containing cosmetic rules ([#6003]). @@ -35,6 +37,7 @@ NOTE: Add new changes BELOW THIS COMMENT. the `Dockerfile`. [#6003]: https://github.com/AdguardTeam/AdGuardHome/issues/6003 +[#6006]: https://github.com/AdguardTeam/AdGuardHome/issues/6006