summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_vlan_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-06-01 10:49:02 +0000
committerErmal <eri@pfsense.org>2011-06-01 10:49:21 +0000
commit695a35aecdf3eefc4d529b57dabb1b5c0018e9c9 (patch)
tree4f524a1305dfe598c5f68f9ee0d78ca1f5db41b9 /usr/local/www/interfaces_vlan_edit.php
parent6b421a0fb42a50d1e87ac63c64a5b8b8d2157577 (diff)
downloadpfsense-695a35aecdf3eefc4d529b57dabb1b5c0018e9c9.zip
pfsense-695a35aecdf3eefc4d529b57dabb1b5c0018e9c9.tar.gz
Ticket #944. Also destory the previous interface if the user changing the vlan tag of an existing vlan entry.
Diffstat (limited to 'usr/local/www/interfaces_vlan_edit.php')
-rwxr-xr-xusr/local/www/interfaces_vlan_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_vlan_edit.php b/usr/local/www/interfaces_vlan_edit.php
index 078fc3b..08f1a53 100755
--- a/usr/local/www/interfaces_vlan_edit.php
+++ b/usr/local/www/interfaces_vlan_edit.php
@@ -97,7 +97,7 @@ if ($_POST) {
if (!$input_errors) {
if (isset($id) && $a_vlans[$id]) {
- if ($a_vlans[$id]['if'] != $_POST['if']) {
+ if (($a_vlans[$id]['if'] != $_POST['if']) || ($a_vlans[$id]['tag'] != $_POST['tag'])) {
if (!empty($a_vlans[$id]['vlanif']))
// Destroy previous vlan
pfSense_interface_destroy($a_vlans[$id]['vlanif']);
OpenPOWER on IntegriCloud