From 17c35c385d48776e310b0baccb5398e86408c14a Mon Sep 17 00:00:00 2001 From: Hans Salvisberg Date: Fri, 6 Feb 2015 00:27:41 +0100 Subject: [PATCH] Fix FATAL PLUGIN ERROR [whitelist]: Can't call method "can" on unblessed reference at lib/Qpsmtpd/Config.pm line 38, line 1. --- lib/Qpsmtpd/Config.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Qpsmtpd/Config.pm b/lib/Qpsmtpd/Config.pm index b918ed9..14d96a9 100644 --- a/lib/Qpsmtpd/Config.pm +++ b/lib/Qpsmtpd/Config.pm @@ -34,7 +34,7 @@ sub config { # first run the user_config hooks my ($rc, @config); - if (ref $type && $type->can('address')) { + if (ref $type && UNIVERSAL::can($type, 'address')) { ($rc, @config) = $qp->run_hooks_no_respond('user_config', $type, $c); if (defined $rc && $rc == OK) { return wantarray ? @config : $config[0];