]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: sink: change the sink mode type to PR_MODE_SYSLOG
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 27 Jun 2025 10:05:16 +0000 (12:05 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 27 Jun 2025 14:41:01 +0000 (16:41 +0200)
No change of behavior expected, but some compat checks will now be aware
that the proxy type is not TCP but SYSLOG instead.

src/sink.c

index 0ed32c25240d82d6956bebae3b7786e1011b858b..73924ec7c6dbc75613bed30dfdb1a4856e601148 100644 (file)
@@ -400,6 +400,7 @@ static int cli_parse_show_events(char **args, char *payload, struct appctx *appc
 /* Pre-configures a ring proxy to emit connections */
 void sink_setup_proxy(struct proxy *px)
 {
+       px->mode = PR_MODE_SYSLOG;
        px->maxconn = 0;
        px->conn_retries = 1; /* FIXME ignored since 91e785ed
                               * ("MINOR: stream: Rely on a per-stream max connection retries value")