* Interrupt the option loop as soon as we have an indication of which
protocol is intended.
* If we end up having to perform a DNS lookup, loop over the entire
result looking for either IPv4 or IPv6 addresses.
* If we fail to make up our minds, just fall through to the first
available option, which is IPv4 if enabled, and IPv6 otherwise.
Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.