[OpenSIPS-Devel] [opensips] resolve inet6 records for hosts and prefer them if dns_try_ipv6 is set (#474)

Jarrod Baumann notifications at github.com
Wed Apr 22 05:33:34 CEST 2015


Previously, if `dns_try_ipv6` was set, resolvehost would only attempt to resolve the ipv6 address if the ipv4 lookup returned no results.  Now if `dns_try_ipv6` is true, both address families are attempted and ipv6 is preferred (this seems to be the logic of most software with ipv6 support enabled).

Also, now that both are resolved, I envision being able to override the default family from the script as well as enable failover should the ipv6 endpoint timeout.  This would follow with future pull requests.
You can view, comment on, or merge this pull request online at:

  https://github.com/OpenSIPS/opensips/pull/474

-- Commit Summary --

  * resolve inet6 records for hosts and prefer them if dns_try_ipv6 is set

-- File Changes --

    M resolve.c (27)

-- Patch Links --

https://github.com/OpenSIPS/opensips/pull/474.patch
https://github.com/OpenSIPS/opensips/pull/474.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/474
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20150421/298acf66/attachment-0001.htm>


More information about the Devel mailing list