<p>It looks like the commit actually attempts both - ipv4 first, then if ipv6 is enabled do ipv6. I think <a href="https://github.com/bogdan-iancu" class="user-mention">@bogdan-iancu</a> is right and the logic should be serial as follows:</p>
<p>if (ipv6_preferred==true){<br>
do IPV6 lookup<br>
if (no IPV6 result){<br>
do IPV4 lookup<br>
}<br>
} else {<br>
do IPV4 lookup<br>
if (no IPV4 result && IPV6 enabled) {<br>
do IPV6 lookup<br>
}<br>
}</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/pull/474#issuecomment-95264218">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciRtTwqOH8gCKEocil8idhuvIIsoOks5oB8tHgaJpZM4EFuNC.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/OpenSIPS/opensips/pull/474#issuecomment-95264218"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>