diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-12 20:54:45 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-12 20:54:45 +0000 |
commit | 1665e79c5231dbc4cf572cf1df71250a9f11fa68 (patch) | |
tree | 0de174c15bbf9091f1e590c9b239e1a90bb31019 /usr/local/www | |
parent | 5c4eeffbbb6d7e025f56417efe8a05ad1eb8d457 (diff) | |
download | pfsense-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-x | usr/local/www/interfaces.php | 8 | ||||
-rwxr-xr-x | usr/local/www/interfaces_lan.php | 10 | ||||
-rwxr-xr-x | usr/local/www/interfaces_opt.php | 8 | ||||
-rwxr-xr-x | usr/local/www/interfaces_wan.php | 8 |
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']); |