<p></p>
<p>Hi Henning, that's a good question. Currently the cinfo struct of the tcp connection is only filled by the proxy protocol parsing (oterwise is init to null) so the check when adding the alias gives the same results (we also chek that the dst IP there is different from the one stored in rcv, to not have duplicate aliases). I've chosen this approach in case that, for other reasons, in the future, we have cinfo != rcv in the connection struct.</p>

<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/2888#issuecomment-947313426">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZK5VVMRNYJ3NW3VQBDUHY6ZBANCNFSM5GJC4N6Q">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABO7UZIN6A3XGCLD3PNGNKDUHY6ZBA5CNFSM5GJC4N62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHB3NWEQ.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/2888#issuecomment-947313426",
"url": "https://github.com/kamailio/kamailio/pull/2888#issuecomment-947313426",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>