summaryrefslogtreecommitdiffstats
path: root/usr/local/www
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
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')
-rwxr-xr-xusr/local/www/interfaces.php8
-rwxr-xr-xusr/local/www/interfaces_lan.php10
-rwxr-xr-xusr/local/www/interfaces_opt.php8
-rwxr-xr-xusr/local/www/interfaces_wan.php8
4 files changed, 13 insertions, 21 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index fd4ec4d..2b35be5 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -182,11 +182,9 @@ if ($_POST) {
if (!$input_errors) {
- if($wancfg['bridge'] <> "" and $_POST['bridge'] == "") {
- $bridge = discover_bridge($wancfg['if'], $wancfg['bridge']);
- if($bridge) {
- destroy_bridge($bridge);
- }
+ $bridge = discover_bridge($wancfg['if'], $wancfg['bridge']);
+ if($bridge) {
+ destroy_bridge($bridge);
}
unset($wancfg['ipaddr']);
diff --git a/usr/local/www/interfaces_lan.php b/usr/local/www/interfaces_lan.php
index 216fd9f..5f6c13d 100755
--- a/usr/local/www/interfaces_lan.php
+++ b/usr/local/www/interfaces_lan.php
@@ -106,13 +106,11 @@ if ($_POST) {
if (!$input_errors) {
- if($lancfg['bridge'] <> "" and $_POST['bridge'] == "") {
- $bridge = discover_bridge($lancfg['if'], $lancfg['bridge']);
- if($bridge) {
- destroy_bridge($bridge);
- }
+ $bridge = discover_bridge($lancfg['if'], $lancfg['bridge']);
+ if($bridge) {
+ destroy_bridge($bridge);
}
-
+
$lancfg['bridge'] = $_POST['bridge'];
if (($lancfg['ipaddr'] != $_POST['ipaddr']) || ($lancfg['subnet'] != $_POST['subnet'])) {
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']);
diff --git a/usr/local/www/interfaces_wan.php b/usr/local/www/interfaces_wan.php
index fd4ec4d..2b35be5 100755
--- a/usr/local/www/interfaces_wan.php
+++ b/usr/local/www/interfaces_wan.php
@@ -182,11 +182,9 @@ if ($_POST) {
if (!$input_errors) {
- if($wancfg['bridge'] <> "" and $_POST['bridge'] == "") {
- $bridge = discover_bridge($wancfg['if'], $wancfg['bridge']);
- if($bridge) {
- destroy_bridge($bridge);
- }
+ $bridge = discover_bridge($wancfg['if'], $wancfg['bridge']);
+ if($bridge) {
+ destroy_bridge($bridge);
}
unset($wancfg['ipaddr']);
OpenPOWER on IntegriCloud