From e2797d9b6eee55e5fcd6fd23c2b375f8fb6ac9c2 Mon Sep 17 00:00:00 2001 From: Steve Allison Date: Thu, 21 Feb 2013 12:39:54 +0000 Subject: [PATCH] Adjust function comments to reflect IP type --- defense.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/defense.php b/defense.php index dc40211..7cf3e6d 100644 --- a/defense.php +++ b/defense.php @@ -48,7 +48,7 @@ class defense extends rcube_plugin { return false; } /** - * Check if IP is within stated CIDR address + * Check if IPv4 is within stated CIDR address * * @param string ip address * @param string cidr address @@ -59,7 +59,7 @@ class defense extends rcube_plugin { return ((ip2long($ip) & ~((1 << (32 - $mask)) - 1) ) == ip2long($subnet)); } /** - * Check string if it is ipv6 + * Check string if it is IPv6 * * @param string ip address * @return bool