mirror of
https://github.com/apache/httpd.git
synced 2025-08-13 14:40:20 +00:00
*) Added support for downstream keepalives in mod_proxy.
*) Changed mod_proxy ap_proxy_http_handler() to support APR properly. PR: Obtained from: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88648 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -143,10 +143,12 @@ int ap_proxy_connect_handler(request_rec *r, char *url,
|
||||
}
|
||||
|
||||
/* check if ProxyBlock directive on this host */
|
||||
destaddr.s_addr = ap_inet_addr(host);
|
||||
/* XXX FIXME */
|
||||
/* destaddr.s_addr = ap_inet_addr(host); */
|
||||
for (i = 0; i < conf->noproxies->nelts; i++) {
|
||||
if ((npent[i].name != NULL && ap_strstr_c(host, npent[i].name) != NULL)
|
||||
|| destaddr.s_addr == npent[i].addr.s_addr || npent[i].name[0] == '*')
|
||||
/* || destaddr.s_addr == npent[i].addr.s_addr */
|
||||
|| npent[i].name[0] == '*')
|
||||
return ap_proxyerror(r, HTTP_FORBIDDEN,
|
||||
"Connect to remote machine blocked");
|
||||
}
|
||||
|
Reference in New Issue
Block a user