aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-05-25 14:39:07 -0400
committerjim-p <jimp@pfsense.org>2011-05-25 14:39:07 -0400
commit54c49bf2b5358b35602cae3cf6a9fead0ba886e5 (patch)
treea1c18629eb7b2efe2c43ce08d57b550935450af1
parentf5f33c1aaba7e941a248996d45bb504e63694223 (diff)
downloadpfsense-packages-54c49bf2b5358b35602cae3cf6a9fead0ba886e5.tar.gz
pfsense-packages-54c49bf2b5358b35602cae3cf6a9fead0ba886e5.tar.bz2
pfsense-packages-54c49bf2b5358b35602cae3cf6a9fead0ba886e5.zip
Small squid3 fix. See http://forum.pfsense.org/index.php/topic,32923.msg191044.html#msg191044
-rw-r--r--config/squid3/squid.inc3
1 files changed, 2 insertions, 1 deletions
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?