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

Eric Tamme notifications at github.com
Wed Apr 22 19:00:55 CEST 2015


It looks like the commit actually attempts both - ipv4 first, then if ipv6 is enabled do ipv6.  I think @bogdan-iancu is right and the logic should be serial as follows:

 if (ipv6_preferred==true){
   do IPV6 lookup
   if (no IPV6 result){
     do IPV4 lookup
   }
} else {
   do IPV4 lookup
   if (no IPV4 result && IPV6 enabled) {
     do IPV6 lookup
   }
}

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


More information about the Devel mailing list