fix perform-clamav-prescan (#460)
This commit is contained in:
@ -393,7 +393,7 @@ func New() *Cmd {
|
|||||||
options = append(options, server.ClamavHost(v))
|
options = append(options, server.ClamavHost(v))
|
||||||
}
|
}
|
||||||
|
|
||||||
if v := c.Bool("perform-clamav-prescan"); !v {
|
if v := c.Bool("perform-clamav-prescan"); v {
|
||||||
if c.String("clamav-host") == "" {
|
if c.String("clamav-host") == "" {
|
||||||
panic("clamav-host not set")
|
panic("clamav-host not set")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user