svn commit: r397215 - in head/www/squid: . files
Cy Schubert
cy at FreeBSD.org
Fri Sep 18 05:12:13 UTC 2015
Author: cy
Date: Fri Sep 18 05:12:12 2015
New Revision: 397215
URL: https://svnweb.freebsd.org/changeset/ports/397215
Log:
Rather than produce a warning message that IPv6 is not supported
under ipfilter 4 (FreeBSD 9) every tenth time, reduce the message
to one in a million. This has the effect of displaying the message
at or shortly after startup with a reminder every blue moon.
PR: 202950
Added:
head/www/squid/files/patch-src__ip__Intercept.cc (contents, props changed)
Modified:
head/www/squid/Makefile
Modified: head/www/squid/Makefile
==============================================================================
--- head/www/squid/Makefile Fri Sep 18 04:40:31 2015 (r397214)
+++ head/www/squid/Makefile Fri Sep 18 05:12:12 2015 (r397215)
@@ -2,7 +2,7 @@
PORTNAME= squid
PORTVERSION= 3.5.8
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www ipv6
MASTER_SITES= http://www.squid-cache.org/Versions/v3/${PORTVERSION:R}/ \
http://www2.us.squid-cache.org/Versions/v3/${PORTVERSION:R}/ \
Added: head/www/squid/files/patch-src__ip__Intercept.cc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/squid/files/patch-src__ip__Intercept.cc Fri Sep 18 05:12:12 2015 (r397215)
@@ -0,0 +1,15 @@
+--- src/ip/Intercept.cc.orig 2015-09-01 12:52:00.000000000 -0700
++++ src/ip/Intercept.cc 2015-09-17 21:52:44.892553613 -0700
+@@ -202,10 +202,10 @@
+ // 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 % 10;
++ warningLevel = ++warningLevel % 1048576;
+ return false;
+ #else
+ natLookup.nl_v = 6;
More information about the svn-ports-all
mailing list