summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-02-09 19:17:52 +0000
committerErmal Luçi <eri@pfsense.org>2010-02-09 19:27:32 +0000
commit2dddf4be0dfb00a5fa4ce0454f400e29a1445088 (patch)
tree9711afe5651891b7b8a38c320d373f8b9037d1d0 /usr
parentc73bd8f08806256960fcfb852cd730188b5f8f2b (diff)
downloadpfsense-2dddf4be0dfb00a5fa4ce0454f400e29a1445088.zip
pfsense-2dddf4be0dfb00a5fa4ce0454f400e29a1445088.tar.gz
Check what to do on the interface when hitting apply options button.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/interfaces.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 2e0097b..1ff6dcc 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -266,7 +266,10 @@ if ($_POST['apply']) {
else {
unlink_if_exists("{$g['tmp_path']}/config.cache");
clear_subsystem_dirty('interfaces');
- interface_configure($if, true);
+ if (isset($pconfig['enable']))
+ interface_configure($if, true);
+ else
+ interface_bring_down($if);
/* restart snmp so that it binds to correct address */
services_snmpd_configure();
OpenPOWER on IntegriCloud