]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
lib/zonecut.c fetch_addr(): resurrect filtering by NO_IPV*
authorVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 3 Nov 2023 11:31:06 +0000 (12:31 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 3 Nov 2023 11:59:16 +0000 (12:59 +0100)
commit3bbda0ad5607bde9303bdacbf51fd5f010b0ca23
tree0e435caaa547012e8fbd49e7ca970b518415ef9f
parenta2cacdccbf1354dca3e0df8fea58a82bf6f358e4
lib/zonecut.c fetch_addr(): resurrect filtering by NO_IPV*

This filtering was dropped in 4565cc596680 (v5.3.0).
Now it's reintroduced - but inside the function, as that seems nicer.
Nit: naming and comment were updated to fit the current usage.

As the code is designed so far (in whole history probably), in order
to detect whether we need to choose a zone cut closer to the root,
we need to do something like this in lib/zonecut.c already,
instead of just during server selection.

I don't think this change can break anything.
Fetching unusable addresses from cache seems pointless,
as selection wouldn't be allowed to use them or try resolving them.
NEWS
lib/zonecut.c