]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix typos in config_set_option for the 'num-threads' and
authorGeorge Thessalonikefs <george@nlnetlabs.nl>
Wed, 18 May 2022 16:55:20 +0000 (19:55 +0300)
committerGeorge Thessalonikefs <george@nlnetlabs.nl>
Wed, 18 May 2022 16:56:26 +0000 (19:56 +0300)
  'ede-serve-expired' options.

doc/Changelog
util/config_file.c

index 74e424a4612aee326184db83224cb563865ca313..fa6457c1c4f520f7c4ef7964c00a113d47924bf5 100644 (file)
@@ -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.
index a423d84a66ef157daa37757288fca159674eb6d4..69e671639d7d675f76eb4fdb24eac33529a44888 100644 (file)
@@ -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)