summaryrefslogtreecommitdiffstats
path: root/etc/inc/util.inc
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-02-11 21:17:03 +0100
committerErmal LUÇI <eri@pfsense.org>2015-02-11 21:17:03 +0100
commit810b36ac0c363c21ea2f1b963f2c1be142fc59a2 (patch)
treec2884b1a7825d2d25e22476a87328dfe434bcd00 /etc/inc/util.inc
parent657932fd09b1bbe7fe43eba1c01e161ad6e766ed (diff)
downloadpfsense-810b36ac0c363c21ea2f1b963f2c1be142fc59a2.zip
pfsense-810b36ac0c363c21ea2f1b963f2c1be142fc59a2.tar.gz
Fixes #4390 Properly return the vip subnet now that the CARP might not match its parent interface subnet.
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r--etc/inc/util.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index 1630b47..97c1267 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -956,9 +956,9 @@ function get_configured_carp_interface_list($carpinterface = '', $family = 'inet
switch ($what) {
case 'subnet':
if ($family == 'inet' && is_ipaddrv4($vip['subnet']))
- return "{$vip['subnet']}/{$vip['subnet_bits']}";
+ return $vip['subnet_bits'];
else if ($family == 'inet6' && is_ipaddrv6($vip['subnet']))
- return "{$vip['subnet']}/{$vip['subnet_bits']}";
+ return $vip['subnet_bits'];
break;
case 'iface':
if ($family == 'inet' && is_ipaddrv4($vip['subnet']))
OpenPOWER on IntegriCloud