freebsd-ports/www/squid3/files/patch-src__ip__Intercept.cc
Steve Wills 2ab13be4a7 www/squid3: copy from www/squid and add PKGNAMESUFFIX
PR:		229601
Submitted by:	Pavel Timofeev <timp87@gmail.com> (maintainer)
2018-07-08 19:55:48 +00:00

15 lines
780 B
C++

--- src/ip/Intercept.cc.orig 2015-11-01 10:44:25 UTC
+++ src/ip/Intercept.cc
@@ -202,10 +202,10 @@ Ip::Intercept::IpfInterception(const Com
// for NAT lookup set local and remote IP:port's
if (newConn->remote.isIPv6()) {
#if IPFILTER_VERSION < 5000003
- // warn once every 10 at critical level, then push down a level each repeated event
+ // warn once every million at critical level, then push down a level each repeated event
static int warningLevel = DBG_CRITICAL;
debugs(89, warningLevel, "IPF (IPFilter v4) NAT does not support IPv6. Please upgrade to IPFilter v5.1");
- warningLevel = (warningLevel + 1) % 10;
+ warningLevel = (warningLevel + 1) % 1048576;
return false;
#else
natLookup.nl_v = 6;