summaryrefslogtreecommitdiffstats
path: root/usr/local/www/load_balancer_pool_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-06-14 20:33:35 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-06-14 20:33:35 +0000
commit183eb39fcb12f81c2b17de82c762bf2696c4b04f (patch)
tree2b2d14de9ea71295ee91960317a55593a8b8bdad /usr/local/www/load_balancer_pool_edit.php
parent52cc08422bb2d3c0e942219b1814f934e0d483e4 (diff)
downloadpfsense-183eb39fcb12f81c2b17de82c762bf2696c4b04f.zip
pfsense-183eb39fcb12f81c2b17de82c762bf2696c4b04f.tar.gz
Remove static route upon changing monitor ip's.
Diffstat (limited to 'usr/local/www/load_balancer_pool_edit.php')
-rwxr-xr-xusr/local/www/load_balancer_pool_edit.php3
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 */
OpenPOWER on IntegriCloud