diff options
author | Ermal <eri@pfsense.org> | 2010-12-09 20:33:44 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-12-09 20:33:44 +0000 |
commit | 8c3450c7ce81e38d3d79f5d552ba9a5bf4033079 (patch) | |
tree | 69a7cc50444fe02e343c9e458d5da6f44e60417d /etc/inc | |
parent | 89428f036f59e00d696c422a2b7111df8716ed84 (diff) | |
download | pfsense-8c3450c7ce81e38d3d79f5d552ba9a5bf4033079.zip pfsense-8c3450c7ce81e38d3d79f5d552ba9a5bf4033079.tar.gz |
Make this at least right though it might not be correct.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 58f6de7..5b3cc54 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -2742,7 +2742,7 @@ function convert_real_interface_to_friendly_interface_name($interface = "wan") { $index = intval(substr($interface, 3)); foreach ($config['virtualip']['vip'] as $counter => $vip) { if ($vip['mode'] == "carpdev-dhcp" || $vip['mode'] == "carp") { - if ($index == $counter) + if ($index == $vip['vhid']) return $vip['interface']; } } |