diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-02-09 19:17:52 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-02-09 19:27:32 +0000 |
commit | 2dddf4be0dfb00a5fa4ce0454f400e29a1445088 (patch) | |
tree | 9711afe5651891b7b8a38c320d373f8b9037d1d0 /usr/local/www | |
parent | c73bd8f08806256960fcfb852cd730188b5f8f2b (diff) | |
download | pfsense-2dddf4be0dfb00a5fa4ce0454f400e29a1445088.zip pfsense-2dddf4be0dfb00a5fa4ce0454f400e29a1445088.tar.gz |
Check what to do on the interface when hitting apply options button.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/interfaces.php | 5 |
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(); |