diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-22 22:18:01 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-22 22:18:01 +0000 |
commit | dd7f45601a32a842f709da3415a903aea98df98d (patch) | |
tree | 66bc3f619b6f2c038fd7cb53929d2459af4bc231 /etc | |
parent | d614e0c582cf458295dff7b8756f0e9c57f85edb (diff) | |
download | pfsense-dd7f45601a32a842f709da3415a903aea98df98d.zip pfsense-dd7f45601a32a842f709da3415a903aea98df98d.tar.gz |
Correct add 1 to advskew
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 6899b28..e43b63b 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -723,16 +723,18 @@ function backup_config_section($section) { function backup_vip_config_section() { global $config; $new_section = &$config['virtualip']; - foreach($new_section as $section) { - if($section['vip']['mode'] == "proxyarp") { + foreach($new_section['vip'] as $section) { + if($section['mode'] == "proxyarp") { unset($section); } - if($section['vip']['advskew'] <> "") { - $section['vip']['advskew']++; + if($section['advskew'] <> "") { + $section['advskew']++; } + $temp['vip'][] = $section; } + /* generate configuration XML */ - $xmlconfig = dump_xml_config($new_section, "virtualip"); + $xmlconfig = dump_xml_config($temp, "virtualip"); $xmlconfig = str_replace("<?xml version=\"1.0\"?>", "", $xmlconfig); return $xmlconfig; } |