diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-12-16 11:33:31 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-12-16 11:34:09 -0200 |
commit | 9d26addd927b3243bb398687f921899032951958 (patch) | |
tree | 083a6b97809c78b5449ef62c482a8c98addb2b27 | |
parent | 04e722a6a55dd04aa71a901c4bd2891cc2e26138 (diff) | |
download | pfsense-9d26addd927b3243bb398687f921899032951958.zip pfsense-9d26addd927b3243bb398687f921899032951958.tar.gz |
Make logic more visible as suggested by Ermal
-rw-r--r-- | etc/inc/interfaces.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index d95b6eb..672d314 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1055,7 +1055,12 @@ function interface_vip_bring_down($vip) { global $g; if (strpos($vip['interface'], '_vip')) { - $carpvip = get_configured_carp_interface_list($vip['interface'], 'inet' . (is_ipaddrv6($vip['subnet']) ? '6' : ''), 'vip'); + if (is_ipaddrv6($vip['subnet'])) + $family = 'inet6'; + else + $family = 'inet'; + + $carpvip = get_configured_carp_interface_list($vip['interface'], $family, 'vip'); $iface = $carpvip['interface']; } else $iface = $vip['interface']; |