Fix handling of ProxyBlock if a forward proxy is configured, and fix
authorJoe Orton <jorton@apache.org>
Tue, 24 Jul 2012 12:17:00 +0000 (12:17 +0000)
committerJoe Orton <jorton@apache.org>
Tue, 24 Jul 2012 12:17:00 +0000 (12:17 +0000)
commit6c41025260d4dfa9f1649a12c1a0f590eac3e753
treec6f549d1d91f29077a4886d1b951ab99772148fe
parent58c1a25a962ca6fb9b62d1f6cd3b8d8be5b62d9a
Fix handling of ProxyBlock if a forward proxy is configured, and fix
mod_proxy_connect to avoid an inappropriate DNS lookup:

* modules/proxy/proxy_util.c (ap_proxy_checkproxyblock): Take hostname
  argument, make address argument optional.  Check names against
  hostname arg, omit if addr not given.
  (ap_proxy_determine_connection): Adjust for the above; pass hostname
  from URI not the next hop.

* modules/proxy/mod_proxy_ftp.c (proxy_ftp_handler): Adjust for
  ap_proxy_checkproxyblock change.

* modules/proxy/mod_proxy_connect.c (proxy_connect_handler): Adjust
  similarly, and avoid the DNS lookup on the request-URI hostname if a
  proxy is used.

* include/ap_mmn.h: Bump MMN.

PR: 43697

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1365001 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
include/ap_mmn.h
modules/proxy/mod_proxy.h
modules/proxy/mod_proxy_connect.c
modules/proxy/mod_proxy_ftp.c
modules/proxy/proxy_util.c