summaryrefslogtreecommitdiffstats
path: root/etc
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:36:34 -0500
commite6807c5ae0e7dc8f5caf7d0de076728824e91887 (patch)
tree34f9743cf4e3a30d4f492d4aecc5da7130896070 /etc
parent3e8ee192b42c82f3767dfdb12f6402a7f1b64e15 (diff)
downloadpfsense-e6807c5ae0e7dc8f5caf7d0de076728824e91887.zip
pfsense-e6807c5ae0e7dc8f5caf7d0de076728824e91887.tar.gz
Return IP correctly in get_interface_ip for gateway groups specifying a
VIP. Ticket #4661
Diffstat (limited to 'etc')
-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 8c4c45a..2e5438c 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -4833,6 +4833,10 @@ function get_interface_ip($interface = "wan") {
else
return null;
}
+
+ 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