]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: listener: remove the useless ->default_target field
authorWilly Tarreau <w@1wt.eu>
Thu, 12 Jan 2023 18:18:34 +0000 (19:18 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 3 Feb 2023 17:00:20 +0000 (18:00 +0100)
commitd5983cef80ddcda9bfd9a563e24355ac752bc09f
treee3e07c5c3e90f26a2f1dac94d06d204ef045b484
parent3083615410849c8fd109abb61e1c3e26f59c75be
MINOR: listener: remove the useless ->default_target field

This field is used by stream_new() to optionally set the applet the
stream will connect to for simple proxies like the CLI for example.
But it has never been configurable to anything and is always strictly
equal to the frontend's ->default_target. Let's just drop it and make
stream_new() only use the frontend's. It makes more sense anyway as
we don't want the proxy to work differently based on the "bind" line.
This idea was brought in 1.6 hoping that the h2 implementation would
use applets for decoding (which was dropped after the very first
attempt in 1.8).
include/haproxy/listener-t.h
src/cfgparse.c
src/cli.c
src/log.c
src/stream.c