From: wessels <> Date: Wed, 8 Nov 2000 05:04:38 +0000 (+0000) Subject: DW: X-Git-Tag: SQUID_3_0_PRE1~1785 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=0e614a06ba28cc89c1dc1c38c0de0c7157113ef2;p=thirdparty%2Fsquid.git DW: - Don't send ICP queries to neighbors when the ICP port is zero. --- diff --git a/src/neighbors.cc b/src/neighbors.cc index bd0a1a95f4..6e8e20f7e8 100644 --- a/src/neighbors.cc +++ b/src/neighbors.cc @@ -1,6 +1,6 @@ /* - * $Id: neighbors.cc,v 1.287 2000/10/31 23:48:14 wessels Exp $ + * $Id: neighbors.cc,v 1.288 2000/11/07 22:04:38 wessels Exp $ * * DEBUG: section 15 Neighbor Routines * AUTHOR: Harvest Derived @@ -166,6 +166,8 @@ peerWouldBePinged(const peer * p, request_t * request) return 0; if (p->n_addresses == 0) return 0; + if (p->icp.port == 0) + return 0; /* the case below seems strange, but can happen if the * URL host is on the other side of a firewall */ if (p->type == PEER_SIBLING)