We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac9a6ec commit 7c2a22cCopy full SHA for 7c2a22c
libraries/IP.php
@@ -59,7 +59,7 @@ public static function checkCIDRv6($ip, $cidr) {
59
$ip_net_bits = substr($binaryip, 0, $maskbits);
60
$net_bits = substr($binarynet, 0, $maskbits);
61
62
- if ($ip_net_bits !== $net_bits) echo "NO\n"; else echo "YES\n";
+ return ($ip_net_bits === $net_bits);
63
}
64
65
private static function inet_to_bits($inet) {
0 commit comments