Skip to content

Commit 8a2bd0a

Browse files
committed
Fix ip
1 parent 485976e commit 8a2bd0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/http/src/Helper/IpHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public static function checkIpv4(string $requestIp, string $ip): bool
9393
sprintf('%032b', ip2long($requestIp)),
9494
sprintf('%032b', ip2long($address)),
9595
0,
96-
$netmask
96+
(int) $netmask
9797
);
9898
}
9999

0 commit comments

Comments
 (0)