mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
interfaces: interface_configure() checks for enabled
This commit is contained in:
parent
842e661ce4
commit
468eaa8a68
@ -550,9 +550,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
$toapplylist = unserialize(file_get_contents('/tmp/.interfaces.apply'));
|
||||
foreach ($toapplylist as $ifapply => $ifcfgo) {
|
||||
interface_bring_down($ifapply, $ifcfgo);
|
||||
if (isset($config['interfaces'][$ifapply]['enable'])) {
|
||||
interface_configure(false, $ifapply, true);
|
||||
}
|
||||
interface_configure(false, $ifapply, true);
|
||||
}
|
||||
|
||||
system_routing_configure();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user