1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/www/squid-devel/files/patch-src_ip_Intercept.cc
Kurt Jaeger b596c6cda7 www/squid-devel: resurrect and upgrade to 5.0.2
- it is strongly recommended to review release notes
  http://www.squid-cache.org/Versions/v5/squid-5.0.2-RELEASENOTES.html
  if you decide to upgrade
- The most notable change for maintainer was BDB deprecation in behalf of TDB
- Know upstream issues:
  https://bugs.squid-cache.org/show_bug.cgi?id=5042

PR:		246140
Submitted by:	Pavel Timofeev <timp87@gmail.com> (maintainer)
2020-05-03 16:03:29 +00:00

16 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);