<p>Hello,</p>
<p>I used str2ipxbuf() instead of stripx().</p>
<p>Tested</p>
<ul>
<li>IPv6 short and long versions</li>
<li>IPv4 versions.</li>
</ul>
<pre><code>ip_addr_t* str2ip6(str* st)
{
        static ip_addr_t ip;

        if(str2ip6buf(st, &ip)<0) {
                return NULL;
        }

        return &ip;
}
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/2045?email_source=notifications&email_token=ABO7UZM7OSH7AV6HT4BGIIDQGTOBHA5CNFSM4IPMS3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5G4GEQ#issuecomment-525189906">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZOWINMBDTVJN3VWN33QGTOBHANCNFSM4IPMS3XQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZOUWVREA57ADB5ECUDQGTOBHA5CNFSM4IPMS3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5G4GEQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/2045?email_source=notifications\u0026email_token=ABO7UZM7OSH7AV6HT4BGIIDQGTOBHA5CNFSM4IPMS3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5G4GEQ#issuecomment-525189906",
"url": "https://github.com/kamailio/kamailio/pull/2045?email_source=notifications\u0026email_token=ABO7UZM7OSH7AV6HT4BGIIDQGTOBHA5CNFSM4IPMS3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5G4GEQ#issuecomment-525189906",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>