Adjust function comments to reflect IP type

This commit is contained in:
Steve Allison committed 2013-02-21 12:39:54 +00:00
1 parent 4c65639b2b
commit e2797d9b6e
1 file changed
+2 -2
+2 -2
View File
@@ -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