summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-06-01 17:36:34 -0500
committerChris Buechler <cmb@pfsense.org>2015-06-01 17:37:26 -0500
commit89953fe732f3a2d74c85bb3aa54cfdd84b055fe9 (patch)
tree334f268c6d6e318c7bbddfc1ae8964204dae8874
parente1eee3d27f95b462b685858f9085e2c0522f951d (diff)
downloadpfsense-89953fe732f3a2d74c85bb3aa54cfdd84b055fe9.zip
pfsense-89953fe732f3a2d74c85bb3aa54cfdd84b055fe9.tar.gz
Return IP correctly in get_interface_ip for gateway groups specifying a
VIP. Ticket #4661
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 120d868..ae44af4 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -5302,6 +5302,10 @@ function get_interface_ip($interface = "wan") {
if (substr($realif, 0, 4) == '_vip') {
return get_configured_carp_interface_list($realif, 'inet', 'ip');
}
+
+ if (strstr($realif, "_vip")) {
+ return get_configured_carp_interface_list($realif);
+ }
$curip = find_interface_ip($realif);
if ($curip && is_ipaddr($curip) && ($curip != "0.0.0.0")) {
OpenPOWER on IntegriCloud