On 28 Oct 2003, at 19:34, Skaag Argonius wrote:

clamd.pm can't seem to be able to ping my clamav daemon (altough it's
running and listening on TCP port 3310).
Can you confirm that this is the port that clamd.pm is looking for?
What am I missing here?

By default Clamd.pm looks for the unix socket /tmp/clamd.


This patch allows you to configure it in config/plugins as:

clamav_clamd port 3310

Matt.

--- clamav_clamd.old    Tue Oct 28 20:33:57 2003
+++ clamav_clamd        Tue Oct 28 20:34:55 2003
@@ -9,11 +9,11 @@
 use File::Temp qw(tempfile);

 my $clamd;
-if(!$clamd){ $clamd = Clamd->new(); }

 sub register {
        my ($self, $qp, @args) = @_;
        $self->register_hook("data_post", "clam_scan");
+        $clamd = Clamd->new(@args);
 }

sub clam_scan {



Reply via email to