summaryrefslogtreecommitdiffstats
path: root/etc/rc.filter_synchronize
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-12-02 21:27:52 +0000
committerErmal <eri@pfsense.org>2013-12-04 11:17:54 +0000
commit991bd7ad160282f670f1ac37c870338992676144 (patch)
treed32858a88fb615da8831c9a27b7fc7c28e3194be /etc/rc.filter_synchronize
parenta589dc74e3df4e28d0cba67df112b947d072dee0 (diff)
downloadpfsense-991bd7ad160282f670f1ac37c870338992676144.zip
pfsense-991bd7ad160282f670f1ac37c870338992676144.tar.gz
Correct only carp value changes
Diffstat (limited to 'etc/rc.filter_synchronize')
-rwxr-xr-xetc/rc.filter_synchronize10
1 files changed, 5 insertions, 5 deletions
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;
}
OpenPOWER on IntegriCloud