summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_lan.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-09 21:19:53 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-09 21:19:53 +0000
commit91e8aab27d16b253ac0b5c2b62471737af0376c5 (patch)
tree14e5ef74c544ef30589f799bc785825ab737781a /usr/local/www/interfaces_lan.php
parentba0e11c7af2f30543f866abeeadedcfbd5729fb4 (diff)
downloadpfsense-91e8aab27d16b253ac0b5c2b62471737af0376c5.zip
pfsense-91e8aab27d16b253ac0b5c2b62471737af0376c5.tar.gz
If user is deleting a bridge, destroy it.
Diffstat (limited to 'usr/local/www/interfaces_lan.php')
-rwxr-xr-xusr/local/www/interfaces_lan.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_lan.php b/usr/local/www/interfaces_lan.php
index 8f9f119..736b947 100755
--- a/usr/local/www/interfaces_lan.php
+++ b/usr/local/www/interfaces_lan.php
@@ -106,6 +106,13 @@ if ($_POST) {
if (!$input_errors) {
+ if($lancfg['bridge'] <> "" and $_POST['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'])) {
OpenPOWER on IntegriCloud