diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-04 21:57:57 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-04 21:57:57 +0000 |
commit | b096010e1ca8126e3ce4b0e05684a54f10eaa2e8 (patch) | |
tree | 8c258f44832fb7edf9a228b6ede3b51057c676ff | |
parent | 1288bfc1dcedb693073239bb2571501dd26b8405 (diff) | |
download | pfsense-b096010e1ca8126e3ce4b0e05684a54f10eaa2e8.zip pfsense-b096010e1ca8126e3ce4b0e05684a54f10eaa2e8.tar.gz |
Only check disabled/enabled status on OPTX interfaces. WAN and LAN are
assumed to always be enabled.
-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 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)) |