On Mon, Jan 17, 2022 at 05:45:58PM +0100, Laszlo Ersek wrote:
...good explanation snipped...
So we should
- just drop AI_ADDRCONFIG from hints,
Yes, that sounds good to do.
- and *IF* we think users like to pass such domain names with "-i",
referring to their own machine, that cannot be resolved from /etc/hosts
but need actual DNS lookups, then we can add options like "-4" and
"-6".
(I consider this highly unlikely, as the long option name for "-i" is
"--ip-addr", which indicates it was never really meant for passing FQDNs.)
I'm happy to submit a patch; please advise me on whether we want -4 / -6
as well.
At this point, I'm leaning towards YAGNI - no need to add -4 or -6
options unless we encounter a user who explains why they need it.
It's simpler for us in the short term to not add an option (which is
already difficult to test whether it works) if no one has expressed a
desire for it. netcat has to be a lot more flexible than nbdkit, so
having -4/-6 there but not in nbdkit is not a big loss from my point
of view.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization:
qemu.org |
libvirt.org