From b60276485d5671cc3323662498f2a64c6b42e75b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Vavru=C5=A1a?= Date: Tue, 24 Apr 2018 16:11:16 -0700 Subject: [PATCH] nsrep: respect NO_THROTTLE for timeouted nameservers --- lib/nsrep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nsrep.c b/lib/nsrep.c index 3558cf715..386a45283 100644 --- a/lib/nsrep.c +++ b/lib/nsrep.c @@ -249,7 +249,7 @@ static int eval_nsrep(const knot_dname_t *owner, const pack_t *addr_set, struct * Servers on TIMEOUT will not have probed at all. * Servers with score above KR_NS_LONG will have periodically removed from * reputation cache, so that kresd can reprobe them. */ - if (score >= KR_NS_TIMEOUT) { + if (score >= KR_NS_TIMEOUT && !(qry->flags.NO_THROTTLE)) { return kr_ok(); } else if (score <= ns->score && (score < KR_NS_LONG || qry->flags.NO_THROTTLE)) { -- 2.47.3