]> git.kaiwu.me - haproxy.git/commit
MINOR: proxy: parse mode on dynamic backend creation
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 12 Jan 2026 14:25:52 +0000 (15:25 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 6 Feb 2026 16:27:50 +0000 (17:27 +0100)
commite15291332797bc71562b4a5706561ce0d26a21a0
tree1e731bc83eb53c10b7a2f398e271c99d653411ba
parent7ac5088c50446f4e94cff0ff8e3f99df6aed9cb4
MINOR: proxy: parse mode on dynamic backend creation

Add an optional "mode" argument to "add backend" CLI command. This
argument allows to specify if the backend is in TCP or HTTP mode.

By default, it is mandatory, unless the inherited default proxy already
explicitely specifies the mode. To differentiate if TCP mode is implicit
or explicit, a new proxy flag PR_FL_DEF_EXPLICIT_MODE is defined. It is
set for every defaults instances which explicitely defined their mode.
doc/management.txt
include/haproxy/proxy-t.h
src/cfgparse-listen.c
src/proxy.c