From 991bd7ad160282f670f1ac37c870338992676144 Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 2 Dec 2013 21:27:52 +0000 Subject: Correct only carp value changes --- etc/rc.filter_synchronize | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'etc') diff --git a/etc/rc.filter_synchronize b/etc/rc.filter_synchronize index bb54eca..ccb745c 100755 --- a/etc/rc.filter_synchronize +++ b/etc/rc.filter_synchronize @@ -55,18 +55,18 @@ function backup_vip_config_section() { $temp = array(); $temp['vip'] = array(); foreach($config['virtualip']['vip'] as $section) { - if(($section['mode'] == "proxyarp" || $section['mode'] == "ipalias") && !(strstr($section['interface'], "lo0"))) + if ($section['mode'] != "carp") continue; - if($section['advskew'] <> "") { + if ($section['advskew'] <> "") { $section_val = intval($section['advskew']); $section_val=$section_val+100; - if($section_val > 254) + if ($section_val > 254) $section_val = 254; $section['advskew'] = $section_val; } - if($section['advbase'] <> "") { + if ($section['advbase'] <> "") { $section_val = intval($section['advbase']); - if($section_val > 254) + if ($section_val > 254) $section_val = 254; $section['advbase'] = $section_val; } -- cgit v1.1