diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/squid/squid.inc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/config/squid/squid.inc b/config/squid/squid.inc index 8a4de81e..7a31f750 100644 --- a/config/squid/squid.inc +++ b/config/squid/squid.inc @@ -944,6 +944,15 @@ function squid_resync_auth() { $settingsconfig = $config['installedpackages']['squid']['config'][0]; $conf = ''; + // Custom Options + if(!empty($config['installedpackages']['squid']['config'][0]['custom_options'])) { + $custopts = explode(";", ($config['installedpackages']['squid']['config'][0]['custom_options'])); + $conf .= "# Custom options\n"; + foreach ($custopts as $custopt) { + $conf .= $custopt."\n"; + } + } + // Deny the banned guys before allowing the good guys if(! empty($settingsnac['banned_hosts'])) { if (squid_is_valid_acl('banned_hosts')) { @@ -1058,14 +1067,6 @@ EOD; $conf .= "http_access allow password $acl\n"; } - if(!empty($config['installedpackages']['squid']['config'][0]['custom_options'])) { - $custopts = explode(";", ($config['installedpackages']['squid']['config'][0]['custom_options'])); - $conf .= "# Custom options\n"; - foreach ($custopts as $custopt) { - $conf .= $custopt."\n"; - } - } - $conf .= "# Default block all to be sure\n"; $conf .= "http_access deny all\n"; |