olofssonanton created an issue (kamailio/kamailio#4338)
Here in `ds_is_addr_from_set`, `he->h_addr_list` may contain more than one
address, but only the first address (as seen by the third argument, `addr_no`)
is stored and later used for comparison.
https://github.com/kamailio/kamailio/blob/91472b8d1015ace7c40c052a19913d38430d575f/src/modules/dispatcher/dispatch.c#L721-L722
https://github.com/kamailio/kamailio/blob/91472b8d1015ace7c40c052a19913d38430d575f/src/core/ip_addr.h#L325-L330
If a request is from any other address than the first in the resolved `hostent`
address list, `ds_is_from_list` will give a false negative.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4338
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4...@github.com>
_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the
sender!