speed-up clamav scan by using clamav-daemon

This commit is contained in:
Volodymyr Smirnov
2020-10-27 20:18:29 +02:00
parent ce353a42dc
commit 263db8ec83
4 changed files with 7 additions and 7 deletions

View File

@@ -12,7 +12,7 @@ namespace MalwareMultiScan.Backends.Backends.Implementations
public override string Id { get; } = "clamav";
protected override string BackendPath { get; } = "/usr/bin/clamscan";
protected override string BackendPath { get; } = "/usr/bin/clamdscan";
protected override Regex MatchRegex { get; } =
new Regex(@"(\S+): (?<threat>[\S]+) FOUND", RegexOptions.Compiled | RegexOptions.Multiline);
@@ -21,7 +21,7 @@ namespace MalwareMultiScan.Backends.Backends.Implementations
protected override string GetBackendArguments(string path)
{
return $"--no-summary {path}";
return $"-m --fdpass --no-summary {path}";
}
}
}