From e6807c5ae0e7dc8f5caf7d0de076728824e91887 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Mon, 1 Jun 2015 17:36:34 -0500 Subject: Return IP correctly in get_interface_ip for gateway groups specifying a VIP. Ticket #4661 --- etc/inc/interfaces.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc') 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")) -- cgit v1.1