Revision 75201355
Added by Ermal LUÇI over 12 years ago
etc/inc/interfaces.inc | ||
---|---|---|
3972 | 3972 |
global $config; |
3973 | 3973 |
|
3974 | 3974 |
if (is_array($config['virtualip']['vip'])) { |
3975 |
$result = array(); |
|
3975 | 3976 |
foreach ($config['virtualip']['vip'] as $vip) { |
3976 | 3977 |
if ($int == $vip['interface']) { |
3977 | 3978 |
if ($action == "update") |
3978 | 3979 |
interfaces_vips_configure($int); |
3979 | 3980 |
else |
3980 |
return $vip;
|
|
3981 |
$result[] = $vip;
|
|
3981 | 3982 |
} |
3982 | 3983 |
} |
3984 |
return $result; |
|
3983 | 3985 |
} |
3984 | 3986 |
} |
3985 | 3987 |
|
Also available in: Unified diff
Return the full list of vips to help with #1823