diff --git a/src/cfgparse.c b/src/cfgparse.c index 5424574c9..85fc185fb 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -3907,6 +3907,19 @@ out_uri_auth_compat: struct peers *curpeers = cfg_peers, **last; struct peer *p, *pb; + /* In the case the peers frontend was not initialized by a + stick-table used in the configuration, set its bind_proc + by default to the first process. */ + while (curpeers) { + if (!curpeers->peers_fe) + continue; + if (curpeers->peers_fe->bind_proc == 0) + curpeers->peers_fe->bind_proc = 1; + + curpeers = curpeers->next; + } + + curpeers = cfg_peers; /* Remove all peers sections which don't have a valid listener, * which are not used by any table, or which are bound to more * than one process.