MEDIUM: proxy: add mode PR_MODE_PEERS to flag peers frontends
authorWilly Tarreau <w@1wt.eu>
Wed, 7 Oct 2020 15:49:42 +0000 (17:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2020 16:28:21 +0000 (18:28 +0200)
commita389c9e1e39cbdb88eb06206fb1daf39798ac5d5
treedb2d3d29810c79c954a48ca13119018f7dfe014b
parent322b9b94e968fea4214e0e6be8af3bdbe24e2a29
MEDIUM: proxy: add mode PR_MODE_PEERS to flag peers frontends

For now we cannot easily distinguish a peers frontend from another one,
which will be problematic to avoid reporting them when stopping their
listeners. Let's add PR_MODE_PEERS for this. It's not supposed to cause
any issue since all non-HTTP proxies are handled similarly now.
include/haproxy/proxy-t.h
src/cfgparse.c
src/peers.c