From 468eaa8a68b61fdfbc9d1c0b951dc0b6c8b58f66 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 26 May 2021 13:19:35 +0200 Subject: [PATCH] interfaces: interface_configure() checks for enabled --- src/www/interfaces.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/www/interfaces.php b/src/www/interfaces.php index 10bd99c80..a69c3fcc4 100644 --- a/src/www/interfaces.php +++ b/src/www/interfaces.php @@ -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();