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, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/issues/4338@github.com>