mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
system: tweak previous
This commit is contained in:
parent
eb53c06567
commit
daa479b419
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user