From: hno <> Date: Sun, 17 Aug 2003 02:33:47 +0000 (+0000) Subject: Bug 718: accel fails with DNS error if cache_peer name= not in /etc/hosts X-Git-Tag: SQUID_3_0_PRE4~1250 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=37181402059858d04d5ea71da17cc62ffe98bee4;p=thirdparty%2Fsquid.git Bug 718: accel fails with DNS error if cache_peer name= not in /etc/hosts --- diff --git a/src/forward.cc b/src/forward.cc index 260b47fabb..519bc9f96a 100644 --- a/src/forward.cc +++ b/src/forward.cc @@ -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;