Commit e5edfd54 authored by Franco Fichtner's avatar Franco Fichtner

system: tweak previous

(cherry picked from commit daa479b4)
parent c23cc638
......@@ -88,12 +88,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'];
}
......@@ -191,6 +185,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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment