diff options
author | Ermal <eri@pfsense.org> | 2013-09-05 12:39:20 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2013-09-05 12:39:31 +0000 |
commit | 25f9f3322863eae12f705137d8d414643d7b853f (patch) | |
tree | 33bd2eefa6f4afe1396bded971d012ee4d01bf49 /etc/inc/services.inc | |
parent | 19d723d2af5e8392d372720ef97b5b83336ec9e1 (diff) | |
download | pfsense-25f9f3322863eae12f705137d8d414643d7b853f.zip pfsense-25f9f3322863eae12f705137d8d414643d7b853f.tar.gz |
Correct check to match the right vip based on configured ip. Reported-by: http://forum.pfsense.org/index.php/topic,66234.0.html
Diffstat (limited to 'etc/inc/services.inc')
-rw-r--r-- | etc/inc/services.inc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc index 5119a39..87e3abe 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; |