diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-06-14 20:33:35 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-06-14 20:33:35 +0000 |
commit | 183eb39fcb12f81c2b17de82c762bf2696c4b04f (patch) | |
tree | 2b2d14de9ea71295ee91960317a55593a8b8bdad /usr/local | |
parent | 52cc08422bb2d3c0e942219b1814f934e0d483e4 (diff) | |
download | pfsense-183eb39fcb12f81c2b17de82c762bf2696c4b04f.zip pfsense-183eb39fcb12f81c2b17de82c762bf2696c4b04f.tar.gz |
Remove static route upon changing monitor ip's.
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/load_balancer_pool_edit.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr/local/www/load_balancer_pool_edit.php b/usr/local/www/load_balancer_pool_edit.php index accb501..b51d8e9 100755 --- a/usr/local/www/load_balancer_pool_edit.php +++ b/usr/local/www/load_balancer_pool_edit.php @@ -112,6 +112,9 @@ if ($_POST) { update_if_changed("port", $poolent['port'], $_POST['port']); update_if_changed("servers", $poolent['servers'], $_POST['servers']); update_if_changed("monitor", $poolent['monitor'], $_POST['monitor']); + + /* kill off old static route */ + mwexec("route delete {$_POST['monitorip']}"); if (isset($id) && $a_pool[$id]) { /* modify all virtual servers with this name */ |