Module: kamailio Branch: master Commit: 9c109f3a371445e03defde279912fbb4179244bd URL: https://github.com/kamailio/kamailio/commit/9c109f3a371445e03defde279912fbb4179244bd
Author: Alexander Bakker <a...@alexbakker.me> Committer: Daniel-Constantin Mierla <mico...@gmail.com> Date: 2025-01-29T08:19:45+01:00 core: tcp_main - include local dst port in conn lookup when using haproxy --- Modified: src/core/tcp_main.c --- Diff: https://github.com/kamailio/kamailio/commit/9c109f3a371445e03defde279912fbb4179244bd.diff Patch: https://github.com/kamailio/kamailio/commit/9c109f3a371445e03defde279912fbb4179244bd.patch --- diff --git a/src/core/tcp_main.c b/src/core/tcp_main.c index e0238fe090b..391255cab9d 100644 --- a/src/core/tcp_main.c +++ b/src/core/tcp_main.c @@ -1745,7 +1745,8 @@ struct tcp_connection *_tcpconn_find(int id, struct ip_addr *ip, int port, print_ip("ip=", &a->parent->rcv.src_ip, "\n"); #endif if((a->parent->state != S_CONN_BAD) && (port == a->port) - && ((l_port == 0) || (l_port == a->parent->rcv.dst_port)) + && ((l_port == 0) || (l_port == a->parent->rcv.dst_port) + || (l_port == a->parent->cinfo.dst_port)) && (ip_addr_cmp(ip, &a->parent->rcv.src_ip)) && (is_local_ip_any || ip_addr_cmp(l_ip, &a->parent->rcv.dst_ip) _______________________________________________ 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!