From 54c49bf2b5358b35602cae3cf6a9fead0ba886e5 Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 25 May 2011 14:39:07 -0400 Subject: Small squid3 fix. See http://forum.pfsense.org/index.php/topic,32923.msg191044.html#msg191044 --- config/squid3/squid.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/squid3') diff --git a/config/squid3/squid.inc b/config/squid3/squid.inc index 67eaecb6..335a8ab4 100644 --- a/config/squid3/squid.inc +++ b/config/squid3/squid.inc @@ -894,7 +894,8 @@ function squid_resync_traffic() { $up_limit = ($settings['max_upload_size'] ? $settings['max_upload_size'] : 0); $down_limit = ($settings['max_download_size'] ? $settings['max_download_size'] : 0); $conf .= "request_body_max_size $up_limit KB\n"; -// $conf .= 'reply_body_max_size ' . ($down_limit * 1024) . " deny all\n"; + if ($down_limit != 0) + $conf .= 'reply_body_max_size ' . ($down_limit * 1024) . " all \n"; // Only apply throttling past 10MB // XXX: Should this really be hardcoded? -- cgit v1.2.3