nsrep: give advantage to IPv6 also for FORWARD-like

parent 9c4984fa
......@@ -21,6 +21,8 @@ Bugfixes
Improvements
------------
- Dockerfile: rework, basing on Debian instead of Alpine
- policy.{FORWARD,TLS_FORWARD,STUB}: give advantage to IPv6
when choosing whom to ask, just as for iteration
Knot Resolver 3.1.0 (2018-11-02)
......
......@@ -509,6 +509,9 @@ int kr_nsrep_sort(struct kr_nsrep *ns, kr_nsrep_rtt_lru_t *rtt_cache)
scores[i] = 1;
} else {
scores[i] = rtt_cache_entry->score;
if (sa->sa_family == AF_INET) {
scores[i] += FAVOUR_IPV6;
}
}
if (VERBOSE_STATUS) {
char sa_str[INET6_ADDRSTRLEN];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment