mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-25 15:11:10 +00:00
[MINOR] add the fiprm and beprm indirections to struct proxy
A proxy will be able to borrow parameters from another one. In particular, the filters will be inheritable from another proxy, and the backend parameters too.
This commit is contained in:
parent
b251390f7e
commit
97a738f32c
@ -67,6 +67,7 @@ struct proxy {
|
|||||||
struct in_addr mon_net, mon_mask; /* don't forward connections from this net (network order) FIXME: should support IPv6 */
|
struct in_addr mon_net, mon_mask; /* don't forward connections from this net (network order) FIXME: should support IPv6 */
|
||||||
int state; /* proxy state */
|
int state; /* proxy state */
|
||||||
struct sockaddr_in dispatch_addr; /* the default address to connect to */
|
struct sockaddr_in dispatch_addr; /* the default address to connect to */
|
||||||
|
struct proxy *fiprm, *beprm; /* proxy we find filter and backend params from (default: self) */
|
||||||
struct server *srv; /* known servers */
|
struct server *srv; /* known servers */
|
||||||
int srv_act, srv_bck; /* # of running servers */
|
int srv_act, srv_bck; /* # of running servers */
|
||||||
int tot_wact, tot_wbck; /* total weights of active and backup servers */
|
int tot_wact, tot_wbck; /* total weights of active and backup servers */
|
||||||
|
@ -1964,6 +1964,8 @@ int readcfgfile(const char *file)
|
|||||||
}
|
}
|
||||||
|
|
||||||
while (curproxy != NULL) {
|
while (curproxy != NULL) {
|
||||||
|
curproxy->fiprm = curproxy->beprm = curproxy;
|
||||||
|
|
||||||
if (curproxy->state == PR_STSTOPPED) {
|
if (curproxy->state == PR_STSTOPPED) {
|
||||||
curproxy = curproxy->next;
|
curproxy = curproxy->next;
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user