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.
struct in_addr mon_net, mon_mask; /* don't forward connections from this net (network order) FIXME: should support IPv6 */
int state; /* proxy state */
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 */
int srv_act, srv_bck; /* # of running servers */
int tot_wact, tot_wbck; /* total weights of active and backup servers */
}
while (curproxy != NULL) {
+ curproxy->fiprm = curproxy->beprm = curproxy;
+
if (curproxy->state == PR_STSTOPPED) {
curproxy = curproxy->next;
continue;