From b096010e1ca8126e3ce4b0e05684a54f10eaa2e8 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 4 Feb 2008 21:57:57 +0000 Subject: Only check disabled/enabled status on OPTX interfaces. WAN and LAN are assumed to always be enabled. --- etc/inc/interfaces.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index d8c0a93..27c280a 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -445,8 +445,9 @@ function interfaces_carp_configure() { $iflist['opt' . $i] = 'opt' . $i; foreach($iflist as $if) { /* ignore down or "disabled" interfaces */ - if (!isset($config['interfaces'][$if]['enable'])) - continue; + if($if <> "lan" and $if <> "wan") + if (!isset($config['interfaces'][$if]['enable'])) + continue; $ww_subnet_ip = $config['interfaces'][$if]['ipaddr']; $ww_subnet_bits = $config['interfaces'][$if]['subnet']; if (ip_in_subnet($vip['subnet'], gen_subnet($ww_subnet_ip, $ww_subnet_bits) . "/" . $ww_subnet_bits)) -- cgit v1.1