On Thu, Jun 10, 2021 at 11:49 AM Martin Nilsson (Coppermist) @ Pike
(-) developers forum <[email protected]> wrote:
>
> >
> >Okay. Here's a proposal:
> >
> >1) Have a Protocols.DNS.prefer_ipv6() that chooses whether IPv6 is
> >preferred over IPv4 for simple lookups. Calling prefer_ipv6(1) will
> >result in the current behaviour, calling prefer_ipv6(0) will return to
> >previous behaviour. This just changes the order of responses, nothing
> >else.
>
> No, add new methods for new behavior. The old function continues to
> return IPv4 and the new one does IPv6+IPv4. Or have some new parameter
> to control preference on a per call basis. We don't want global states
> in modules.

Trouble with that is that it'd need to be carried through as part of
the API for everything that uses it. So Protocols.HTTP.Query would
need to have something to control which one it prefers, and
Protocols.HTTP.get_url would need to have something to set that
parameter, etc.

But maybe that won't matter, if the other parts of the plan are worth doing.

ChrisA

Reply via email to