summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-11-11 20:08:25 +0100
committerErmal <eri@pfsense.org>2014-11-11 20:08:25 +0100
commit94115b931349c4c2dbaff080842bcdbe60ed94b7 (patch)
tree45dec7826838af9b6b54d1088d65eaef7d9f08ce /etc/inc
parent992f60d0fb3f309dafe5465f69c1af45a839d227 (diff)
downloadpfsense-94115b931349c4c2dbaff080842bcdbe60ed94b7.zip
pfsense-94115b931349c4c2dbaff080842bcdbe60ed94b7.tar.gz
Fixes #3967, properly resolve interface
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index aa6bad2..4046d24 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2166,12 +2166,12 @@ function interface_ipalias_configure(&$vip) {
$af = 'inet6';
$iface = $vip['interface'];
$vipadd = '';
- if (stripos($vip['interface'], '_vip')) {
+ if (strpos($vip['interface'], '_vip')) {
$carpvip = get_configured_carp_interface_list($vip['interface'], $af, 'vip');
$iface = $carpvip['interface'];
$vipadd = "vhid {$carpvip['vhid']}";
}
- $if = get_real_interface($vip['interface']);
+ $if = get_real_interface($iface);
mwexec("/sbin/ifconfig " . escapeshellarg($if) ." {$af} ". escapeshellarg($vip['subnet']) ."/" . escapeshellarg($vip['subnet_bits']) . " alias {$vipadd}");
unset($iface, $af, $if, $carpvip, $vipadd);
}
OpenPOWER on IntegriCloud