freebsd-ports/www/squid/files/patch-src_ip_Intercept.cc
Steve Wills 6597864489 www/squid: update to 4.1
PR:		229601
Submitted by:	timp87@gmail.com (maintainer)
2018-07-08 20:46:45 +00:00

15 lines
759 B
C++

--- src/ip/Intercept.cc.orig 2018-07-02 03:26:07 UTC
+++ src/ip/Intercept.cc
@@ -215,10 +215,10 @@ Ip::Intercept::IpfInterception(const Comm::ConnectionP
newConn->remote.getInAddr(natLookup.nl_outipaddr.in4);
}
#else
- // 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, "Your IPF (IPFilter) NAT does not support IPv6. Please upgrade it.");
- warningLevel = (warningLevel + 1) % 10;
+ warningLevel = (warningLevel + 1) % 1048576;
return false;
}
newConn->local.getInAddr(natLookup.nl_inip);