From adf28e735ea8760ef4e4b9f2c0fcf458f18c3324 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 5 Aug 2006 18:48:42 +0000 Subject: [PATCH] Check for valid IP Address when needed. Ticket #1055 --- usr/local/pkg/carp_settings.xml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/usr/local/pkg/carp_settings.xml b/usr/local/pkg/carp_settings.xml index 62791fc89a..d07d773235 100644 --- a/usr/local/pkg/carp_settings.xml +++ b/usr/local/pkg/carp_settings.xml @@ -117,13 +117,13 @@ synchronizelb When this option is enabled, this system will automatically sync the Load Balancer settings over to the other carp host when changes are made. checkbox - + Synchronize Virtual IPs synchronizevirtualip When this option is enabled, this system will automatically sync the Virtual IP (minus proxyarp) settings over to the other carp host when changes are made. checkbox - + Synchronize traffic shaper synchronizetrafficshaper @@ -135,7 +135,7 @@ synchronizednsforwarder When this option is enabled, this system will automatically sync the DNS Forwarder hosts/domains over to the other carp host when changes are made. checkbox - + Synchronize to IP synchronizetoip @@ -150,11 +150,16 @@ password + + if($_POST["synchronizetoip"]) + if(!is_ipaddr($_POST["synchronizetoip"])) + $input_errors[] = "You must specify a valid IP address."; + /* setup carp interfaces */ interfaces_carp_configure(); interfaces_carp_bring_up_final(); /* force a filter configure for syncing */ filter_configure(); - + \ No newline at end of file