Correct check to match the right vip based on configured ip. Reported-by: http://forum.pfsense.org/index.php/topic,66234.0.html

This commit is contained in:
Ermal 2013-09-05 12:39:20 +00:00
parent 36fa13a632
commit 9d7ca11fce

View File

@ -448,10 +448,9 @@ EOD;
* does it match up to a defined vip?
*/
$skew = 110;
$a_vip = &$config['virtualip']['vip'];
if(is_array($a_vip)) {
foreach ($a_vip as $vipent) {
if($int == $real_dhcpif) {
if(is_array($config['virtualip']['vip'])) {
foreach ($config['virtualip']['vip'] as $vipent) {
if($vipent['subnet'] == $intip) {
/* this is the interface! */
if(is_numeric($vipent['advskew']) && ($vipent['advskew'] < "20"))
$skew = 0;