diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-01-14 18:29:57 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-01-14 18:34:26 +0000 |
commit | da831323bdfbd5b3987f5e514725bea850972a04 (patch) | |
tree | b68b5f1114de43f744f4a79b7cb756fbb5c01973 /etc/inc/upgrade_config.inc | |
parent | f426f89e7228dedcccefd22b32142e6fe1041399 (diff) | |
download | pfsense-da831323bdfbd5b3987f5e514725bea850972a04.zip pfsense-da831323bdfbd5b3987f5e514725bea850972a04.tar.gz |
Ticket #280. Seems that xml parser does not set the value correctly.
Diffstat (limited to 'etc/inc/upgrade_config.inc')
-rw-r--r-- | etc/inc/upgrade_config.inc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index 9716a6d..222e7a1 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -1339,8 +1339,10 @@ function upgrade_051_to_052() { $server['interface'] = 'wan'; $server['tunnel_network'] = $server['addresspool']; unset($server['addresspool']); - $server['compress'] = $server['use_lzo']; - unset($server['use_lzo']); + if (isset($server['use_lzo'])) { + $server['compress'] = true; + unset($server['use_lzo']); + } if ($server['nopool']) $server['pool_enable'] = false; else @@ -1433,8 +1435,10 @@ function upgrade_051_to_052() { unset($client['serverport']); $client['proxy_addr'] = $client['poxy_hostname']; unset($client['proxy_addr']); - $client['compress'] = $client['use_lzo']; - unset($client['use_lzo']); + if (isset($client['use_lzo'])) { + $client['compress'] = true; + unset($client['use_lzo']); + } $client['resolve_retry'] = $client['infiniteresolvretry']; unset($client['infiniteresolvretry']); |