mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-24 16:49:35 -05:00
- Fix #1106: ratelimit-below-domain logs the wrong FROM address.
This commit is contained in:
parent
3af4e44646
commit
3512eaec48
2 changed files with 7 additions and 1 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
23 July 2024: Yorgos
|
||||||
|
- Fix #1106: ratelimit-below-domain logs the wrong FROM address.
|
||||||
|
|
||||||
19 July 2024: Wouter
|
19 July 2024: Wouter
|
||||||
- Add dnstap-sample-rate that logs only 1/N messages, for high volume
|
- Add dnstap-sample-rate that logs only 1/N messages, for high volume
|
||||||
server environments. Thanks Dan Luther.
|
server environments. Thanks Dan Luther.
|
||||||
|
|
|
||||||
|
|
@ -3466,7 +3466,10 @@ outnet_serviced_query(struct outside_network* outnet,
|
||||||
timenow = *env->now;
|
timenow = *env->now;
|
||||||
if(!infra_ratelimit_inc(env->infra_cache, zone,
|
if(!infra_ratelimit_inc(env->infra_cache, zone,
|
||||||
zonelen, timenow, env->cfg->ratelimit_backoff,
|
zonelen, timenow, env->cfg->ratelimit_backoff,
|
||||||
&qstate->qinfo, qstate->reply)) {
|
&qstate->qinfo,
|
||||||
|
qstate->mesh_info->reply_list
|
||||||
|
?&qstate->mesh_info->reply_list->query_reply
|
||||||
|
:NULL)) {
|
||||||
/* Can we pass through with slip factor? */
|
/* Can we pass through with slip factor? */
|
||||||
if(env->cfg->ratelimit_factor == 0 ||
|
if(env->cfg->ratelimit_factor == 0 ||
|
||||||
ub_random_max(env->rnd,
|
ub_random_max(env->rnd,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue