From f109fb17a4266e88033dac3dc547aff67545ed85 Mon Sep 17 00:00:00 2001 From: Eugene Burkov Date: Tue, 11 Oct 2022 19:49:35 +0300 Subject: [PATCH] Pull request: 5010 revert default cache size Merge in DNS/adguard-home from 5010-default-settings to master Updates #5010. Squashed commit of the following: commit 19edb2c7ff47d35462d83703c766561d1c334daa Author: Eugene Burkov Date: Tue Oct 11 19:45:49 2022 +0300 all: imp log of changes commit a0ad92f0245830a64ed4e285b6017d04173fe2c7 Author: Eugene Burkov Date: Tue Oct 11 19:34:37 2022 +0300 home: revert default value --- CHANGELOG.md | 3 +++ internal/home/config.go | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f7ca66ac..31854726 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,8 @@ and this project adheres to ### Fixed +- The default value of `dns.cache_size` accidentally set to 0 has now been + reverted to 4 MiB ([#5010]). - Responses for which the DNSSEC validation had explicitly been omitted aren't cached now ([#4942]). - Web UI not switching to HTTP/3 ([#4986], [#4993]). @@ -35,6 +37,7 @@ and this project adheres to [#4942]: https://github.com/AdguardTeam/AdGuardHome/issues/4942 [#4986]: https://github.com/AdguardTeam/AdGuardHome/issues/4986 [#4993]: https://github.com/AdguardTeam/AdGuardHome/issues/4993 +[#5010]: https://github.com/AdguardTeam/AdGuardHome/issues/5010 [clientid]: https://github.com/AdguardTeam/AdGuardHome/wiki/Clients#clientid diff --git a/internal/home/config.go b/internal/home/config.go index 598baf81..b5aecea2 100644 --- a/internal/home/config.go +++ b/internal/home/config.go @@ -236,6 +236,7 @@ var config = &configuration{ }, TrustedProxies: []string{"127.0.0.0/8", "::1/128"}, + CacheSize: 4 * 1024 * 1024, // set default maximum concurrent queries to 300 // we introduced a default limit due to this: