summaryrefslogtreecommitdiffstats
path: root/usr/local/pkg/carp_settings.xml
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-08-05 18:48:42 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-08-05 18:48:42 +0000
commitadf28e735ea8760ef4e4b9f2c0fcf458f18c3324 (patch)
treea0ac5c05df05735abf0483303e9329dccb5fdb94 /usr/local/pkg/carp_settings.xml
parent00c3915d9b4b4b32daec813826c52fd1b418aae0 (diff)
downloadpfsense-adf28e735ea8760ef4e4b9f2c0fcf458f18c3324.zip
pfsense-adf28e735ea8760ef4e4b9f2c0fcf458f18c3324.tar.gz
Check for valid IP Address when needed.
Ticket #1055
Diffstat (limited to 'usr/local/pkg/carp_settings.xml')
-rw-r--r--usr/local/pkg/carp_settings.xml13
1 files changed, 9 insertions, 4 deletions
diff --git a/usr/local/pkg/carp_settings.xml b/usr/local/pkg/carp_settings.xml
index 62791fc..d07d773 100644
--- a/usr/local/pkg/carp_settings.xml
+++ b/usr/local/pkg/carp_settings.xml
@@ -117,13 +117,13 @@
<fieldname>synchronizelb</fieldname>
<description>When this option is enabled, this system will automatically sync the Load Balancer settings over to the other carp host when changes are made.</description>
<type>checkbox</type>
- </field>
+ </field>
<field>
<fielddescr>Synchronize Virtual IPs</fielddescr>
<fieldname>synchronizevirtualip</fieldname>
<description>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.</description>
<type>checkbox</type>
- </field>
+ </field>
<field>
<fielddescr>Synchronize traffic shaper</fielddescr>
<fieldname>synchronizetrafficshaper</fieldname>
@@ -135,7 +135,7 @@
<fieldname>synchronizednsforwarder</fieldname>
<description>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.</description>
<type>checkbox</type>
- </field>
+ </field>
<field>
<fielddescr>Synchronize to IP</fielddescr>
<fieldname>synchronizetoip</fieldname>
@@ -150,11 +150,16 @@
<type>password</type>
</field>
</fields>
+ <custom_php_validation_command>
+ if($_POST["synchronizetoip"])
+ if(!is_ipaddr($_POST["synchronizetoip"]))
+ $input_errors[] = "You must specify a valid IP address.";
+ </custom_php_validation_command>
<custom_add_php_command_late>
/* setup carp interfaces */
interfaces_carp_configure();
interfaces_carp_bring_up_final();
/* force a filter configure for syncing */
filter_configure();
- </custom_add_php_command_late>
+ </custom_add_php_command_late>
</packagegui> \ No newline at end of file
OpenPOWER on IntegriCloud