From daa479b4194db98e3c6a083d85dc8d1abd0dba63 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 7 Apr 2016 22:24:18 +0200 Subject: [PATCH] system: tweak previous --- src/www/system_general.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/www/system_general.php b/src/www/system_general.php index 8057c0da1..c8899236c 100644 --- a/src/www/system_general.php +++ b/src/www/system_general.php @@ -91,12 +91,6 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { } $pconfig['dnslocalhost'] = isset($config['system']['dnslocalhost']); - if (!empty($pconfig['prefer_ipv4'])) { - $config['system']['prefer_ipv4'] = true; - } elseif (isset($config['system']['prefer_ipv4'])) { - unset($config['system']['prefer_ipv4']); - } - if (isset($config['system']['firmware']['mirror'])) { $pconfig['mirror'] = $config['system']['firmware']['mirror']; } @@ -194,6 +188,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { $config['system']['firmware']['flavour'] = $pconfig['flavour']; } + if (!empty($pconfig['prefer_ipv4'])) { + $config['system']['prefer_ipv4'] = true; + } elseif (isset($config['system']['prefer_ipv4'])) { + unset($config['system']['prefer_ipv4']); + } + $olddnsservers = $config['system']['dnsserver']; $config['system']['dnsserver'] = array(); foreach (array('dns1', 'dns2', 'dns3', 'dns4') as $dnsopt) {