diff options
author | Ermal <eri@pfsense.org> | 2010-08-17 21:23:09 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-08-17 21:23:09 +0000 |
commit | f6f5fde13718e29670783173e99b2f3707614151 (patch) | |
tree | fde078dcb2eca92bdc51d0357c0a8b4bb39abf4d /usr/local/www/firewall_virtual_ip_edit.php | |
parent | cbe495170a4d6409cb48ad69386805bda6f3a5bc (diff) | |
download | pfsense-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-x | usr/local/www/firewall_virtual_ip_edit.php | 4 |
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']) |