DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43697>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43697


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |




------- Additional Comments From [EMAIL PROTECTED]  2007-10-26 07:27 -------
relaying proxy in intranet never resolve internet hostname, but must relay to
internet. so, need fix.

$ diff -u mod_proxy_connect.c.bak mod_proxy_connect.c
--- mod_proxy_connect.c.bak     2007-09-03 02:42:59.000000000 +0900
+++ mod_proxy_connect.c 2007-10-26 23:22:52.504875000 +0900
@@ -121,13 +121,15 @@
     ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server,
          "proxy: CONNECT: connecting %s to %s:%d", url, uri.hostname, 
uri.port);

-    /* do a DNS lookup for the destination host */
-    err = apr_sockaddr_info_get(&uri_addr, uri.hostname, APR_UNSPEC, uri.port,
-                                0, p);
-    if (APR_SUCCESS != err) {
-        return ap_proxyerror(r, HTTP_BAD_GATEWAY,
-                             apr_pstrcat(p, "DNS lookup failure for: ",
-                                         uri.hostname, NULL));
+    if (!proxyname || (conf->noproxies->nelts != 0)) {
+        /* do a DNS lookup for the destination host */
+        err = apr_sockaddr_info_get(&uri_addr, uri.hostname, APR_UNSPEC, 
uri.port,
+                                    0, p);
+        if ((APR_SUCCESS != err) && (!proxyname && )) {
+            return ap_proxyerror(r, HTTP_BAD_GATEWAY,
+                                 apr_pstrcat(p, "DNS lookup failure for: ",
+                                             uri.hostname, NULL));
+        }
     }

     /* are we connecting directly, or via a proxy? */

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to