wizard: always set WAN_GW #7263

This is a bit weird as we (re)set the interface if found but not when
we create it.  For consistency's sake this seems to be more appropriate.
This commit is contained in:
Franco Fichtner 2024-02-22 17:00:43 +01:00
parent 6984aefe43
commit 6b145065e5
1 changed files with 1 additions and 3 deletions

View File

@ -633,9 +633,7 @@ $config = OPNsense\Core\Config::getInstance()->toArray(listtags());
$config['system']['hostname'] = $config['wizardtemp']['system']['hostname'];
$config['system']['domain'] = $config['wizardtemp']['system']['domain'];
if ($found) {
$config['interfaces']['wan']['gateway'] = 'WAN_GW';
}
$config['interfaces']['wan']['gateway'] = 'WAN_GW';
unset($config['wizardtemp']);
write_config();