summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/etc/inc/util.inc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/etc/inc/util.inc b/src/etc/inc/util.inc
index 8005283..e0f1a2a 100644
--- a/src/etc/inc/util.inc
+++ b/src/etc/inc/util.inc
@@ -972,11 +972,9 @@ function get_v6_ptr_zones($subnet, $bits) {
$change_part--;
}
- /* Convert desired part to decimal and increase 1 */
+ /* Increase 1 to desired part */
$parts = explode(":", Net_IPv6::uncompress($small_subnet));
- $dec = base_convert($parts[$change_part], 16, 10) + 1;
- /* Move back to hex and rebuild IP address */
- $parts[$change_part] = base_convert($dec, 10, 16);
+ $parts[$change_part]++;
$small_subnet = implode(":", $parts);
}
OpenPOWER on IntegriCloud