shithub: riscv

Download patch

ref: 7113f730dec2aba58935fdf0eb2b13ad58e63a69
parent: 16c87febd3875c4b0c9648c681735be3de8358bd
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Jun 1 19:53:09 EDT 2018

ndb/cs: make ipv6 only host practical by checking ip version on local interfaces

avoid returning ip addresses that cannot be reached due
to lack of a compatible ip address. this means when here
is no ipv4 address configured, we wont return ipv4 addresses
and would not query dns for an A record.

likewise, when here is no ipv6 address configured then
we wont query dns for an AAAA record.

ipv6 lookups can still be disabled with the -4 flag just
as before.