summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_virtual_ip_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-08-17 21:23:09 +0000
committerErmal <eri@pfsense.org>2010-08-17 21:23:09 +0000
commitf6f5fde13718e29670783173e99b2f3707614151 (patch)
treefde078dcb2eca92bdc51d0357c0a8b4bb39abf4d /usr/local/www/firewall_virtual_ip_edit.php
parentcbe495170a4d6409cb48ad69386805bda6f3a5bc (diff)
downloadpfsense-f6f5fde13718e29670783173e99b2f3707614151.zip
pfsense-f6f5fde13718e29670783173e99b2f3707614151.tar.gz
Fixes #694. Actually if the vip interface changes take proper actions to clean up on the previous interface.
Diffstat (limited to 'usr/local/www/firewall_virtual_ip_edit.php')
-rwxr-xr-xusr/local/www/firewall_virtual_ip_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/firewall_virtual_ip_edit.php b/usr/local/www/firewall_virtual_ip_edit.php
index c2be43b..ffddef7 100755
--- a/usr/local/www/firewall_virtual_ip_edit.php
+++ b/usr/local/www/firewall_virtual_ip_edit.php
@@ -156,6 +156,8 @@ if ($_POST) {
if (isset($id) && ($a_vip[$id])) {
if ($a_vip[$id]['mode'] != $_POST['mode'])
interface_vip_bring_down($a_vip[$id]);
+ if ($a_vip[$id]['interface'] != $_POST['interface'])
+ interface_vip_bring_down($a_vip[$id]);
}
if (!$input_errors) {
@@ -202,8 +204,6 @@ if ($_POST) {
}
if (isset($id) && $a_vip[$id]) {
- if ($_POST['mode'] == "ipalias")
- interface_vip_bring_down($a_vip[$id]);
/* modify all virtual IP rules with this address */
for ($i = 0; isset($config['nat']['rule'][$i]); $i++) {
if ($config['nat']['rule'][$i]['destination']['address'] == $a_vip[$id]['subnet'])
OpenPOWER on IntegriCloud