]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] config: emit warnings when HTTP-only options are used in TCP mode
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Mar 2010 06:22:56 +0000 (07:22 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 25 Mar 2010 06:26:18 +0000 (07:26 +0100)
commite24fdfb8be799ceb8f37800f4b28c8bc3d352296
tree0421898e2e38e3de6c8f106c5af0314a7f21d7d7
parent3fd6cec5f65ea20c07512f88b13e13ed2a60d87d
[MINOR] config: emit warnings when HTTP-only options are used in TCP mode

It's very common to see people getting trapped by HTTP-only options
which don't work in TCP proxies. To help them definitely get rid of
those configs, let's emit warnings for all options and statements
which are not supported in their mode. That includes all HTTP-only
options, the cookies and the stats.

In order to ensure internal config correctness, the options are also
disabled.
src/cfgparse.c