Revision 8c3450c7
Added by Ermal LUÇI over 14 years ago
etc/inc/interfaces.inc | ||
---|---|---|
2742 | 2742 |
$index = intval(substr($interface, 3)); |
2743 | 2743 |
foreach ($config['virtualip']['vip'] as $counter => $vip) { |
2744 | 2744 |
if ($vip['mode'] == "carpdev-dhcp" || $vip['mode'] == "carp") { |
2745 |
if ($index == $counter)
|
|
2745 |
if ($index == $vip['vhid'])
|
|
2746 | 2746 |
return $vip['interface']; |
2747 | 2747 |
} |
2748 | 2748 |
} |
Also available in: Unified diff
Make this at least right though it might not be correct.