MAJOR: peers: allow peers section to be used with nbproc > 1
This only works when the peers are bound to exactly one process.
(cherry picked from commit bf59807a13efad31a99d48e57efe05343d77adec)
diff --git a/src/cfgparse.c b/src/cfgparse.c
index 3cc3678..debc2bc 100644
--- a/src/cfgparse.c
+++ b/src/cfgparse.c
@@ -6170,12 +6170,6 @@
}
}
- if (global.nbproc > 1 && curproxy->table.peers.name) {
- Alert("Proxy '%s': peers can't be used in multi-process mode (nbproc > 1).\n",
- curproxy->id);
- cfgerr++;
- }
-
switch (curproxy->mode) {
case PR_MODE_HEALTH:
cfgerr += proxy_cfg_ensure_no_http(curproxy);