]> git.proxmox.com Git - pmg-api.git/commitdiff
config: freshclam: default to incremental downloads
authorStoiko Ivanov <s.ivanov@proxmox.com>
Wed, 30 Jun 2021 16:39:55 +0000 (18:39 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 3 Jul 2021 20:05:50 +0000 (22:05 +0200)
clamav recently started yielding 429 (too many requests) response
codes on even comparatively low attempts to download the complete
signature files (cvd)(see [0]), instead of the incremental changes
(cdiff) (see [1] for some background)

changing the default to scriptedupdates (a.k.a. cdiff download) seems
sensible for most situations.

[0] https://docs.clamav.net/faq/faq-freshclam.html
[1] https://blog.clamav.net/2021/03/clamav-cvds-cdiffs-and-magic-behind.html

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
src/PMG/Config.pm

index 748ed80acea54dd85ab0a4acb8a7c3cdff90cab4..20f68dadbc256af5d7f4b3c9e1a2f071f7a5cc6a 100755 (executable)
@@ -397,7 +397,7 @@ sub properties {
        scriptedupdates => {
            description => "Enables ScriptedUpdates (incremental download of signatures)",
            type => 'boolean',
-           default => 0
+           default => 1
        },
     };
 }