summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-12-09 20:33:44 +0000
committerErmal <eri@pfsense.org>2010-12-09 20:33:44 +0000
commit8c3450c7ce81e38d3d79f5d552ba9a5bf4033079 (patch)
tree69a7cc50444fe02e343c9e458d5da6f44e60417d /etc/inc
parent89428f036f59e00d696c422a2b7111df8716ed84 (diff)
downloadpfsense-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.inc2
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'];
}
}
OpenPOWER on IntegriCloud