]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: haterm: cannot reset default "haterm" mode
authorFrederic Lecaille <flecaille@haproxy.com>
Mon, 23 Feb 2026 16:10:56 +0000 (17:10 +0100)
committerFrederic Lecaille <flecaille@haproxy.com>
Mon, 23 Feb 2026 16:57:19 +0000 (17:57 +0100)
commitca5332a9c35bed1f5c40adeaa03fe902d83075fa
tree0aab87968cfdcdf019e52daa581adb326d715e39
parenta9dc8e25878013ef6124af6cc9d7fddbf7ab5a38
BUG/MINOR: haterm: cannot reset default "haterm" mode

When "mode haterm" was set in a "defaults" section, it could not be
overridden in subsequent sections using the "mode" keyword. This is because
the proxy stream instantiation callback was not being reset to the
default stream_new() value.

This could break the stats URI with a configuration such as:

    defaults
        mode haterm
        # ...

    frontend stats
bind :8181
mode http
stats uri /

This patch ensures the ->stream_new_from_sc() proxy callback is reset
to stream_new() when the "mode" keyword is parsed for any mode other
than "haterm".

No need to backport.
src/cfgparse-listen.c