From 3936288512bfc2d44902ead6ab1bb5711f92b73c Mon Sep 17 00:00:00 2001 From: Ainar Garipov Date: Mon, 17 Jul 2023 19:23:46 +0300 Subject: [PATCH] all: imp client resolving --- CHANGELOG.md | 3 + internal/dnsforward/config.go | 12 +- internal/dnsforward/dialcontext.go | 60 ++++++ 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 | 32 +++- ...ients_test.go => clients_internal_test.go} | 16 +- internal/home/config.go | 8 +- internal/home/dns.go | 176 +++--------------- internal/home/home.go | 88 +-------- internal/home/httpclient.go | 47 +++++ 16 files changed, 436 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 fb6c12b13ab..3c43ed5cd6f 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