Merge pull request #129 from fobser/serve-expired-ttl-typo

Fix typo to let serve-expired-ttl work with ub_ctx_set_option().
This commit is contained in:
Ralph Dolmans 2019-12-12 12:59:28 +01:00 committed by GitHub
commit 13a76ba0a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -582,7 +582,7 @@ int config_set_option(struct config_file* cfg, const char* opt,
else S_YNO("aggressive-nsec:", aggressive_nsec)
else S_YNO("ignore-cd-flag:", ignore_cd)
else S_YNO("serve-expired:", serve_expired)
else if(strcmp(opt, "serve_expired_ttl:") == 0)
else if(strcmp(opt, "serve-expired-ttl:") == 0)
{ IS_NUMBER_OR_ZERO; cfg->serve_expired_ttl = atoi(val); SERVE_EXPIRED_TTL=(time_t)cfg->serve_expired_ttl;}
else S_YNO("serve-expired-ttl-reset:", serve_expired_ttl_reset)
else S_STR("val-nsec3-keysize-iterations:", val_nsec3_key_iterations)