* plugins/virus/clamdscan
Correctly support alternate domain socket Remove a tab that crept in git-svn-id: https://svn.perl.org/qpsmtpd/trunk@383 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
a44957dc86
commit
43f39a4538
@ -55,7 +55,7 @@ Full path to the clamd socket (the recommended mode); defaults to
|
|||||||
=item B<clamd_port>
|
=item B<clamd_port>
|
||||||
|
|
||||||
If present, must be the TCP port where the clamd service is running,
|
If present, must be the TCP port where the clamd service is running,
|
||||||
typically 3310; default disabled.
|
typically 3310; default disabled. If present, overrides the clamd_socket.
|
||||||
|
|
||||||
=item B<deny_viruses>
|
=item B<deny_viruses>
|
||||||
|
|
||||||
@ -138,8 +138,14 @@ sub clamdscan {
|
|||||||
|
|
||||||
my $clamd;
|
my $clamd;
|
||||||
|
|
||||||
if ( $self->{"_clamd"}->{"clamd_port"}
|
if (
|
||||||
and $self->{"_clamd"}->{"clamd_port"} =~ /(\d+)/ )
|
(
|
||||||
|
$self->{"_clamd"}->{"clamd_port"}
|
||||||
|
and $self->{"_clamd"}->{"clamd_port"} =~ /(\d+)/
|
||||||
|
)
|
||||||
|
or ( $self->{"_clamd"}->{"clamd_socket"}
|
||||||
|
and $self->{"_clamd"}->{"clamd_socket"} =~ /([\w\/.]+)/ )
|
||||||
|
)
|
||||||
{
|
{
|
||||||
my $port = $1;
|
my $port = $1;
|
||||||
$clamd = Clamd->new( port => $port );
|
$clamd = Clamd->new( port => $port );
|
||||||
|
Loading…
Reference in New Issue
Block a user