diff --git a/lib/Qpsmtpd/Base.pm b/lib/Qpsmtpd/Base.pm index 1d2f4d4..cfe88ff 100644 --- a/lib/Qpsmtpd/Base.pm +++ b/lib/Qpsmtpd/Base.pm @@ -42,8 +42,7 @@ sub is_valid_ip { sub is_ipv6 { my ($self, $ip) = @_; return if !$ip; - return 1 if Net::IP::ip_is_ipv6($ip); - return; + return Net::IP::ip_is_ipv6($ip); }; 1;