diff options
author | Ermal <eri@pfsense.org> | 2014-11-11 20:08:25 +0100 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-11-11 20:08:25 +0100 |
commit | 94115b931349c4c2dbaff080842bcdbe60ed94b7 (patch) | |
tree | 45dec7826838af9b6b54d1088d65eaef7d9f08ce /etc/inc | |
parent | 992f60d0fb3f309dafe5465f69c1af45a839d227 (diff) | |
download | pfsense-94115b931349c4c2dbaff080842bcdbe60ed94b7.zip pfsense-94115b931349c4c2dbaff080842bcdbe60ed94b7.tar.gz |
Fixes #3967, properly resolve interface
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
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); } |