From 4a715058938ad9eae71e7571df10f9075f0035bd Mon Sep 17 00:00:00 2001 From: Xie Han <63350856@qq.com> Date: Tue, 12 Mar 2024 22:07:17 +0800 Subject: [PATCH] Reduce default DNS cache ttl. --- src/manager/WFGlobal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/manager/WFGlobal.h b/src/manager/WFGlobal.h index 34b58523..f4805ed6 100644 --- a/src/manager/WFGlobal.h +++ b/src/manager/WFGlobal.h @@ -67,8 +67,8 @@ static constexpr struct WFGlobalSettings GLOBAL_SETTINGS_DEFAULT = { .endpoint_params = ENDPOINT_PARAMS_DEFAULT, .dns_server_params = ENDPOINT_PARAMS_DEFAULT, - .dns_ttl_default = 12 * 3600, - .dns_ttl_min = 180, + .dns_ttl_default = 3600, + .dns_ttl_min = 60, .dns_threads = 4, .poller_threads = 4, .handler_threads = 20,