summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-11-11 19:08:25 (GMT)
committerErmal <eri@pfsense.org>2014-11-11 19:08:25 (GMT)
commit94115b931349c4c2dbaff080842bcdbe60ed94b7 (patch)
tree45dec7826838af9b6b54d1088d65eaef7d9f08ce
parent992f60d0fb3f309dafe5465f69c1af45a839d227 (diff)
downloadunivnautes-94115b931349c4c2dbaff080842bcdbe60ed94b7.zip
univnautes-94115b931349c4c2dbaff080842bcdbe60ed94b7.tar.gz
univnautes-94115b931349c4c2dbaff080842bcdbe60ed94b7.tar.bz2
Fixes #3967, properly resolve interface
-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);
}