]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: tevt/conn: Report intercepted event for L4 rules
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 23 Dec 2024 13:39:58 +0000 (14:39 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 31 Jan 2025 09:41:50 +0000 (10:41 +0100)
When a L4 rules interrupts the processing, a termination event is reported
for the connection, with the "fd" location.

src/tcp_rules.c

index 8bb5d00c96de3e97c6a1f522e1e68d71030d4078..2a7d0d6ed247f49d56e348b49918a448690c19a5 100644 (file)
@@ -578,6 +578,8 @@ int tcp_exec_l4_rules(struct session *sess)
                goto restart;
        }
  end:
+       if (!result)
+               conn_report_term_evt(conn, tevt_loc_fd, tevt_type_intercepted);
        return result;
 }