diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-04 21:57:51 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-04 21:57:51 +0000 |
commit | af668fad5eabf1233221470616fba96485b5769f (patch) | |
tree | 40af365833e5d67e503adf89efbd6bd3969020ef /etc/inc | |
parent | 9f5e2a88ac8ab244f2502fc7cc629a59ecabd6ad (diff) | |
download | pfsense-af668fad5eabf1233221470616fba96485b5769f.zip pfsense-af668fad5eabf1233221470616fba96485b5769f.tar.gz |
Only check disabled/enabled status on OPTX interfaces. WAN and LAN are
assumed to always be enabled.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 7de6fc8..555555f 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)) |