]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 718: accel fails with DNS error if cache_peer name= not in /etc/hosts
authorhno <>
Sun, 17 Aug 2003 02:33:47 +0000 (02:33 +0000)
committerhno <>
Sun, 17 Aug 2003 02:33:47 +0000 (02:33 +0000)
src/forward.cc

index 260b47fabbf7b71ccdbf3a38bbfccca6b603c9f7..519bc9f96a4e797ebedac553903c1beda223c052 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: forward.cc,v 1.110 2003/08/13 21:49:45 hno Exp $
+ * $Id: forward.cc,v 1.111 2003/08/16 20:33:47 hno Exp $
  *
  * DEBUG: section 17    Request Forwarding
  * AUTHOR: Duane Wessels
@@ -560,7 +560,7 @@ fwdConnectStart(void *data)
     debug(17, 3) ("fwdConnectStart: %s\n", url);
 
     if (fs->_peer) {
-        host = fs->_peer->name;
+        host = fs->_peer->host;
         port = fs->_peer->http_port;
         ctimeout = fs->_peer->connect_timeout > 0 ? fs->_peer->connect_timeout
                    : Config.Timeout.peer_connect;