]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: extend str2sa_range to add an alt parameter
authorAperence <anthony.doeraene.dev@gmail.com>
Mon, 26 Aug 2024 09:50:24 +0000 (11:50 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 30 Aug 2024 16:53:49 +0000 (18:53 +0200)
commita7b04e383a613150d56ebf9f4c51e64bf603c3a2
tree03bc9cb291ca7151512be141b9636495d3aa97f1
parent2bc513dd31afb8b5a4e172d3efdb30bfdb87db0c
MINOR: tools: extend str2sa_range to add an alt parameter

Add a new parameter "alt" that will store wether this configuration
use an alternate protocol.

This alt pointer will contain a value that can be transparently
passed to protocol_lookup to obtain an appropriate protocol structure.

This change is needed to allow for example the servers to know if it
need to use an alternate protocol or not.
14 files changed:
include/haproxy/protocol.h
include/haproxy/tools.h
src/cfgparse-listen.c
src/cfgparse.c
src/check.c
src/cli.c
src/hlua.c
src/http_client.c
src/log.c
src/resolvers.c
src/server.c
src/ssl_ocsp.c
src/tcpcheck.c
src/tools.c