On Mit 28.11.2007 14:30, Alexandre Cassen wrote:
>Hello,
>
>You will find attached an updated release of previously submitted
>patch. It polish some part and extend ACL engine to match IP and PORT
>parsed in HTTP request. (and take care of comments made by Willy ! ;))
Cool work ;-)
>diff -urN haproxy-1.3.13.1/src/cfgparse.c haproxy-1.3.13.1-http_proxy/src/cfgparse.c
>+++ haproxy-1.3.13.1-http_proxy/src/cfgparse.c 2007-11-28 13:46:58.000000000 +0100
>@@ -94,6 +94,7 @@
> { "keepalive", PR_O_KEEPALIVE, PR_CAP_NONE, 0 },
> { "httpclose", PR_O_HTTP_CLOSE, PR_CAP_FE | PR_CAP_BE, 0 },
> { "nolinger", PR_O_TCP_NOLING, PR_CAP_FE | PR_CAP_BE, 0 },
>+ { "http_proxy", PR_O_HTTP_PROXY, PR_CAP_FE | PR_CAP_BE, 0 },
> { "logasap", PR_O_LOGASAP, PR_CAP_FE, 0 },
> { "abortonclose", PR_O_ABRT_CLOSE, PR_CAP_BE, 0 },
> { "checkcache", PR_O_CHK_CACHE, PR_CAP_BE, 0 },
>@@ -2462,7 +2463,7 @@
> }
> else if (curproxy->cap & PR_CAP_BE &&
> ((curproxy->mode != PR_MODE_HEALTH) &&
>- !(curproxy->options & (PR_O_TRANSP | PR_O_BALANCE)) &&
>+ !(curproxy->options & (PR_O_TRANSP | PR_O_BALANCE | PR_O_HTTP_PROXY)) &&
> (*(int *)&curproxy->dispatch_addr.sin_addr == 0))) {
> Alert("parsing %s : %s '%s' has no dispatch address and is not in transparent or balance mode.\n",
> file, proxy_type_str(curproxy), curproxy->id);
Should the message be also adapted?!
Cheers
Aleks Received on 2007/11/28 15:03
This archive was generated by hypermail 2.2.0 : 2007/11/28 15:45 CET