summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_opt.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-12 20:54:45 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-12 20:54:45 +0000
commit1665e79c5231dbc4cf572cf1df71250a9f11fa68 (patch)
tree0de174c15bbf9091f1e590c9b239e1a90bb31019 /usr/local/www/interfaces_opt.php
parent5c4eeffbbb6d7e025f56417efe8a05ad1eb8d457 (diff)
downloadpfsense-1665e79c5231dbc4cf572cf1df71250a9f11fa68.zip
pfsense-1665e79c5231dbc4cf572cf1df71250a9f11fa68.tar.gz
Destroy the bridge either way, it will be recreated if needed.
Diffstat (limited to 'usr/local/www/interfaces_opt.php')
-rwxr-xr-xusr/local/www/interfaces_opt.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php
index 002e752..93896a6 100755
--- a/usr/local/www/interfaces_opt.php
+++ b/usr/local/www/interfaces_opt.php
@@ -165,11 +165,9 @@ if ($_POST) {
if (!$input_errors) {
- if($optcfg['bridge'] <> "" and $_POST['bridge'] == "") {
- $bridge = discover_bridge($optcfg['if'], $optcfg['bridge']);
- if($bridge) {
- destroy_bridge($bridge);
- }
+ $bridge = discover_bridge($optcfg['if'], $optcfg['bridge']);
+ if($bridge) {
+ destroy_bridge($bridge);
}
unset($optcfg['dhcphostname']);
OpenPOWER on IntegriCloud