mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 09:04:12 +02:00
support clamav socket
This commit is contained in:
parent
9824fc9254
commit
200921a74c
4 changed files with 111 additions and 27 deletions
|
|
@ -16,7 +16,7 @@ mod smb;
|
|||
|
||||
use crate::cloud::CloudOptions;
|
||||
use crate::config::{HazeConfig, Preset};
|
||||
pub use crate::service::clam::{Clam, ClamIcap, ClamIcapTls};
|
||||
pub use crate::service::clam::{Clam, ClamIcap, ClamIcapTls, ClamSocket};
|
||||
use crate::service::dav::Dav;
|
||||
use crate::service::imaginary::Imaginary;
|
||||
use crate::service::kaspersky::{Kaspersky, KasperskyIcap};
|
||||
|
|
@ -207,6 +207,7 @@ pub enum Service {
|
|||
Kaspersky(Kaspersky),
|
||||
KasperskyIcap(KasperskyIcap),
|
||||
Clam(Clam),
|
||||
ClamSocket(ClamSocket),
|
||||
ClamIcap(ClamIcap),
|
||||
ClamIcapTls(ClamIcapTls),
|
||||
Oc(Oc),
|
||||
|
|
@ -247,9 +248,13 @@ impl Service {
|
|||
"kaspersky" => Some(vec![Service::Kaspersky(Kaspersky)]),
|
||||
"kaspersky-icap" => Some(vec![Service::KasperskyIcap(KasperskyIcap)]),
|
||||
"clamav" => Some(vec![Service::Clam(Clam)]),
|
||||
"clamav-external" => Some(vec![Service::ClamSocket(ClamSocket)]),
|
||||
"clamav-socket" => Some(vec![Service::ClamSocket(ClamSocket)]),
|
||||
"clamav-icap" => Some(vec![Service::ClamIcap(ClamIcap)]),
|
||||
"clamav-icap-tls" => Some(vec![Service::ClamIcapTls(ClamIcapTls)]),
|
||||
"clam" => Some(vec![Service::Clam(Clam)]),
|
||||
"clam-external" => Some(vec![Service::ClamSocket(ClamSocket)]),
|
||||
"clam-socket" => Some(vec![Service::ClamSocket(ClamSocket)]),
|
||||
"clam-icap" => Some(vec![Service::ClamIcap(ClamIcap)]),
|
||||
"clam-icap-tls" => Some(vec![Service::ClamIcapTls(ClamIcapTls)]),
|
||||
"mail" => Some(vec![Service::Mail(Mail)]),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue