From a0212347bf2e6bca31007b81c7910af7c3e9fd7b Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Wed, 13 Mar 2013 02:02:41 -0400 Subject: [PATCH] whitelist: added pass prefix to log entries --- plugins/whitelist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/whitelist b/plugins/whitelist index 43aace4..549dea1 100644 --- a/plugins/whitelist +++ b/plugins/whitelist @@ -138,7 +138,7 @@ sub check_host { # From tcpserver if (exists $ENV{WHITELISTCLIENT}) { $self->qp->connection->notes('whitelistclient', 1); - $self->log(2, "host $ip is a whitelisted client"); + $self->log(2, "pass, host $ip is a whitelisted client"); return OK; } @@ -146,7 +146,7 @@ sub check_host { for my $h ($self->qp->config('whitelisthosts', $config_arg)) { if ($h eq $ip or $ip =~ /^\Q$h\E/) { $self->qp->connection->notes('whitelisthost', 1); - $self->log(2, "host $ip is a whitelisted host"); + $self->log(2, "pass, host $ip is a whitelisted host"); return OK; } }