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:
parent
6984aefe43
commit
6b145065e5
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue