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:33:31 -0200 |
commit | 136217fd1da479907faa9b4ad5ad9cd59456ae05 (patch) | |
tree | 7b873c1e04b28f39a6ac080e6323817e0e4a6884 /etc/inc/interfaces.inc | |
parent | d4ea38c5790b319e9417ad468a0b46f9f560e18b (diff) | |
download | pfsense-136217fd1da479907faa9b4ad5ad9cd59456ae05.zip pfsense-136217fd1da479907faa9b4ad5ad9cd59456ae05.tar.gz |
Make logic more visible as suggested by Ermal
Diffstat (limited to 'etc/inc/interfaces.inc')
-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']; |