From ba045ef1463e47d432a68a1d1ae8c35075d84156 Mon Sep 17 00:00:00 2001 From: Anders Lind Date: Tue, 1 Mar 2016 22:08:55 +0100 Subject: Check $active Fix missing check for $active to avoid creating a route to a released lease. --- src/usr/local/sbin/prefixes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/usr/local/sbin') diff --git a/src/usr/local/sbin/prefixes.php b/src/usr/local/sbin/prefixes.php index 8ad1ec4..2626c30 100644 --- a/src/usr/local/sbin/prefixes.php +++ b/src/usr/local/sbin/prefixes.php @@ -47,7 +47,7 @@ while (( $line = fgets($fd, 4096)) !== false) { /* closing bracket */ if (preg_match("/^}/i", $line)) { - if (isset($duid) && $duid !== false) { + if (isset($duid) && $duid !== false && $active === true) { switch ($type) { case "ia-na": $duid_arr[$duid][$type] = $ia_na; -- cgit v1.1