diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-09 21:19:53 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-09 21:19:53 +0000 |
commit | 91e8aab27d16b253ac0b5c2b62471737af0376c5 (patch) | |
tree | 14e5ef74c544ef30589f799bc785825ab737781a /usr/local/www/interfaces_lan.php | |
parent | ba0e11c7af2f30543f866abeeadedcfbd5729fb4 (diff) | |
download | pfsense-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-x | usr/local/www/interfaces_lan.php | 7 |
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'])) { |