g-andrade / locus

MMDB reader for geolocation and ASN lookup of IP addresses
https://hexdocs.pm/locus/
MIT License
111 stars 15 forks source link

Customise httpc: IPv6-only and IPv4-only setups #45

Open ruslandoga opened 3 months ago

ruslandoga commented 3 months ago

👋

Is there a way to provide {ipfamily, inet6fb4} option to httpc to make it work in both IPv6-only and IPv4-only networks? I tried to do a quick search but it doesn't seem like user options are passed to HTTP downloader.

g-andrade commented 2 months ago

Hi @ruslandoga, not at the moment - a way of specifying additional httpc options would be a good addition. I'll leave this issue open as a reminder.

In the mean time, you can achieve what you're looking for through the locus_custom_fetcher behaviour.