]> git.lizzy.rs Git - plan9front.git/commit
ndb/cs: make ipv6 only host practical by checking ip version on local interfaces
authorcinap_lenrek <cinap_lenrek@felloff.net>
Fri, 1 Jun 2018 21:53:09 +0000 (23:53 +0200)
committercinap_lenrek <cinap_lenrek@felloff.net>
Fri, 1 Jun 2018 21:53:09 +0000 (23:53 +0200)
commit7113f730dec2aba58935fdf0eb2b13ad58e63a69
tree2928bac42d29a2e315cbefbedfc78fe1300a4b37
parent16c87febd3875c4b0c9648c681735be3de8358bd
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.
sys/src/cmd/ndb/cs.c