]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: proxy: refactor mode parsing
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 12 Jan 2026 13:47:51 +0000 (14:47 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 6 Feb 2026 13:35:18 +0000 (14:35 +0100)
commitdc6cf224dde9dc2de9d693bff968a478c216ad7f
tree3f71d781c09109e5f970e95d7d8a36547d51f595
parent87ea407cce6a9993609d808fe0edd1466cae924a
MINOR: proxy: refactor mode parsing

Define a new utility function str_to_proxy_mode() which is able to
convert a string into the corresponding proxy mode if possible. This new
function is used for the parsing of "mode" configuration proxy keyword.

This patch will be reused for dynamic backend implementation, in order
to parse a similar "mode" argument via a CLI handler.
include/haproxy/proxy.h
src/cfgparse-listen.c
src/proxy.c