diff options
author | doktornotor <notordoktor@gmail.com> | 2015-11-29 19:01:51 +0100 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-11-29 19:01:51 +0100 |
commit | 90ae6c829adce44d7dccfe7c2acefa5ab5eec265 (patch) | |
tree | a58bea33ed96df81f4bffbdc825e99088fecbe6d /config/squid3/34 | |
parent | 4efb357cb8079f20bac7612e7656ae2c7cf213e8 (diff) | |
download | pfsense-packages-90ae6c829adce44d7dccfe7c2acefa5ab5eec265.tar.gz pfsense-packages-90ae6c829adce44d7dccfe7c2acefa5ab5eec265.tar.bz2 pfsense-packages-90ae6c829adce44d7dccfe7c2acefa5ab5eec265.zip |
Switch ClamAV mirrors order to prefer manually configured mirrors
Diffstat (limited to 'config/squid3/34')
-rw-r--r-- | config/squid3/34/squid_antivirus.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/squid3/34/squid_antivirus.inc b/config/squid3/34/squid_antivirus.inc index 82768f4b..e22ae039 100644 --- a/config/squid3/34/squid_antivirus.inc +++ b/config/squid3/34/squid_antivirus.inc @@ -392,14 +392,14 @@ EOF; $freshclam_m[0] = "@#This file was automatically generated by pfSense@"; $freshclam_r[0] = "#This file was automatically generated by pfSense WebGUI configuration"; $clamav_mirrors = ""; - if ($antivirus_config['clamav_dbregion'] != "") { - $clamav_mirrors .= "DatabaseMirror db.{$antivirus_config['clamav_dbregion']}.clamav.net\n"; - } if ($antivirus_config['clamav_dbservers'] != "") { foreach (explode(";", $antivirus_config['clamav_dbservers']) as $dbserver) { $clamav_mirrors .= "DatabaseMirror {$dbserver}\n"; } } + if ($antivirus_config['clamav_dbregion'] != "") { + $clamav_mirrors .= "DatabaseMirror db.{$antivirus_config['clamav_dbregion']}.clamav.net\n"; + } if ($clamav_mirrors != "") { $freshclam_m[1] = "@#DatabaseMirror db.XY.clamav.net@"; $freshclam_r[1] = "{$clamav_mirrors}"; |