summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/upgrade_config.inc12
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']);
OpenPOWER on IntegriCloud