summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-12-03 12:37:17 -0200
committerRenato Botelho <garga@FreeBSD.org>2013-12-03 12:37:36 -0200
commitf70a140fe18cb80012e53f82c268788fbcae5436 (patch)
tree522969f3e9ba96db8cfb66d1de6eb4cf0544decf
parent4e4e35dd93bf0ddad9047543f5cfe1d5ec632886 (diff)
downloadpfsense-f70a140fe18cb80012e53f82c268788fbcae5436.zip
pfsense-f70a140fe18cb80012e53f82c268788fbcae5436.tar.gz
Fix #3350. Do not destroy an interface when it's being disabled
-rwxr-xr-xusr/local/www/interfaces.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 0627e32..e0ab071 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -359,11 +359,9 @@ if ($_POST['apply']) {
if (file_exists("{$g['tmp_path']}/.interfaces.apply")) {
$toapplylist = unserialize(file_get_contents("{$g['tmp_path']}/.interfaces.apply"));
foreach ($toapplylist as $ifapply => $ifcfgo) {
- if (isset($config['interfaces'][$ifapply]['enable'])) {
- interface_bring_down($ifapply, false, $ifcfgo);
+ interface_bring_down($ifapply, false, $ifcfgo);
+ if (isset($config['interfaces'][$ifapply]['enable']))
interface_configure($ifapply, true);
- } else
- interface_bring_down($ifapply, true, $ifcfgo);
}
}
/* restart snmp so that it binds to correct address */
OpenPOWER on IntegriCloud