summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-02-21 13:45:43 +0000
committerErmal <eri@pfsense.org>2014-02-21 13:45:43 +0000
commit11aa4666a1542188e9e6e18b8c4978527b76c4da (patch)
treeb93e4215cd0cd94c111c74ebf889ebfddc6d475c /etc/inc
parente45a0b69e74847d136e4fd40b7d414905ab5c205 (diff)
downloadpfsense-11aa4666a1542188e9e6e18b8c4978527b76c4da.zip
pfsense-11aa4666a1542188e9e6e18b8c4978527b76c4da.tar.gz
Ticket #2627. Just pass the array over no need to traverse it
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/interfaces.inc10
1 files changed, 4 insertions, 6 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index abafa2b..6c331ae 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1299,12 +1299,10 @@ function interface_bring_down($interface = "wan", $destroy = false, $ifacecfg =
}
if (!empty($track6) && is_array($track6)) {
- foreach ($track6 as $trackif) {
- if (!function_exists('services_dhcp_configure'))
- require_once('services.inc');
- /* Bring down radvd and dhcp6 on these interfaces */
- services_dhcpd_configure('inet6', $track6);
- }
+ if (!function_exists('services_dhcp_configure'))
+ require_once('services.inc');
+ /* Bring down radvd and dhcp6 on these interfaces */
+ services_dhcpd_configure('inet6', $track6);
}
if (file_exists("{$g['tmp_path']}/{$realif}_router"))
OpenPOWER on IntegriCloud