mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-13 15:54:07 -05:00
- Fix #1134: unbound-control set_option val-date-override: -1 works
immediately to ignore datetime, or back to 0 to enable it again. git-svn-id: file:///svn/unbound/trunk@3907 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
6e2e8c047f
commit
147a6c8548
2 changed files with 12 additions and 0 deletions
|
|
@ -2256,6 +2256,14 @@ do_set_option(SSL* ssl, struct worker* worker, char* arg)
|
|||
(void)ssl_printf(ssl, "error setting option\n");
|
||||
return;
|
||||
}
|
||||
/* effectuate some arguments */
|
||||
if(strcmp(arg, "val-override-date:") == 0) {
|
||||
int m = modstack_find(&worker->env.mesh->mods, "validator");
|
||||
struct val_env* val_env = NULL;
|
||||
if(m != -1) val_env = (struct val_env*)worker->env.modinfo[m];
|
||||
if(val_env)
|
||||
val_env->date_override = worker->env.cfg->val_date_override;
|
||||
}
|
||||
send_ok(ssl);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,7 @@
|
|||
25 October 2016: Wouter
|
||||
- Fix #1134: unbound-control set_option val-date-override: -1 works
|
||||
immediately to ignore datetime, or back to 0 to enable it again.
|
||||
|
||||
24 October 2016: Wouter
|
||||
- serve-expired config option: serve expired responses with TTL 0.
|
||||
- g.root-servers.net has AAAA address.
|
||||
|
|
|
|||
Loading…
Reference in a new issue