diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/squid3/squid.inc | 3 |
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? |