]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: gkeeling <grm___k@hotmail.com>
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 27 Apr 2010 13:24:55 +0000 (01:24 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 27 Apr 2010 13:24:55 +0000 (01:24 +1200)
Bug 2860: pt2; correct IP match logics

Earlier patch incorrectly altered the IP matching tests. Preventing a
match from being possible.

src/wccp.cc

index 47abf1ad5df2539614b697eab1015aa0c9d774be..9f0f5147987feac0137ea8f5eb3a19abf80b5138 100644 (file)
@@ -287,7 +287,7 @@ wccpLowestIP(void)
     for (loop = 0; loop < (unsigned) ntohl(wccp_i_see_you.number); loop++) {
         assert(loop < WCCP_ACTIVE_CACHES);
 
-        if (local_ip >= wccp_i_see_you.wccp_cache_entry[loop].ip_addr)
+        if (local_ip > wccp_i_see_you.wccp_cache_entry[loop].ip_addr)
             return 0;
 
         if (local_ip == wccp_i_see_you.wccp_cache_entry[loop].ip_addr)