From 9d7ca11fce0498dbc685dc2b64747ee6a2a11111 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 5 Sep 2013 12:39:20 +0000 Subject: Correct check to match the right vip based on configured ip. Reported-by: http://forum.pfsense.org/index.php/topic,66234.0.html --- etc/inc/services.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'etc/inc/services.inc') diff --git a/etc/inc/services.inc b/etc/inc/services.inc index 14d1233..219887e 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -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; -- cgit v1.1