Commit e90eb5b0 authored by Clemens John's avatar Clemens John

Fix bug that prevents the isInNetwork() check of an ipv6 address on php 5.6

Signed-off-by: Clemens John's avatarClemens John <clemens.john@floh1111.de>
parent 8ff8bea5
......@@ -327,8 +327,8 @@
$ipv4Format = "A4";
$ipv6Format = "A16";
} else {
$ipv4Format = "A4";
$ipv6Format = "A16";
$ipv4Format = "a4";
$ipv6Format = "a16";
}
if($ipv==4) $unpacked = unpack($ipv4Format, $inet);
elseif($ipv==6) $unpacked = unpack($ipv6Format, $inet);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment