summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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