From: George Thessalonikefs Date: Wed, 18 May 2022 16:55:20 +0000 (+0300) Subject: - Fix typos in config_set_option for the 'num-threads' and X-Git-Tag: release-1.16.0rc1~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7e506bb477b98f15403af960b73bdde55152ee59;p=thirdparty%2Funbound.git - Fix typos in config_set_option for the 'num-threads' and 'ede-serve-expired' options. --- diff --git a/doc/Changelog b/doc/Changelog index 74e424a46..fa6457c1c 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,7 @@ +18 May 2022: George + - Fix typos in config_set_option for the 'num-threads' and + 'ede-serve-expired' options. + 15 May 2022: George - Fix #678: [FR] modify behaviour of unbound-control rpz_enable zone, by updating unbound-control's documentation. diff --git a/util/config_file.c b/util/config_file.c index a423d84a6..69e671639 100644 --- a/util/config_file.c +++ b/util/config_file.c @@ -479,7 +479,7 @@ int config_set_option(struct config_file* cfg, const char* opt, else if(atoi(val) == 0) return 0; else cfg->stat_interval = atoi(val); - } else if(strcmp(opt, "num_threads:") == 0) { + } else if(strcmp(opt, "num-threads:") == 0) { /* not supported, library must have 1 thread in bgworker */ return 0; } else if(strcmp(opt, "outgoing-port-permit:") == 0) { @@ -674,7 +674,7 @@ int config_set_option(struct config_file* cfg, const char* opt, { IS_NUMBER_OR_ZERO; cfg->serve_expired_reply_ttl = atoi(val); SERVE_EXPIRED_REPLY_TTL=(time_t)cfg->serve_expired_reply_ttl;} else S_NUMBER_OR_ZERO("serve-expired-client-timeout:", serve_expired_client_timeout) else S_YNO("ede:", ede) - else S_YNO("ede_serve-expired:", ede_serve_expired) + else S_YNO("ede-serve-expired:", ede_serve_expired) else S_YNO("serve-original-ttl:", serve_original_ttl) else S_STR("val-nsec3-keysize-iterations:", val_nsec3_key_iterations) else S_YNO("zonemd-permissive-mode:", zonemd_permissive_mode)