Capitalize IP

This commit is contained in:
Scott Ullrich 2007-04-30 21:01:20 +00:00
parent 9764f4701f
commit 27ecd06e76

View File

@ -165,16 +165,16 @@
$ifdescrs['opt' . $j] = "opt" . $j;
foreach($ifdescrs as $descr)
if($config['interfaces']['$descr']['ipaddr'] == $_POST["synchronizetoip"])
$input_errors[] = "CARP sync IP must be the backup firewall ip! You cannot specify this firewalls IP in this location.";
$input_errors[] = "CARP sync IP must be the backup firewall IP! You cannot specify this firewalls IP in this location.";
if($config['virtualip']['vip']) {
foreach($config['virtualip']['vip'] as $vip) {
if($vip['subnet'] == $_POST["synchronizetoip"])
$input_errors[] = "CARP sync IP must be the backup firewall ip! You cannot specify this firewalls IP in this location.";
$input_errors[] = "CARP sync IP must be the backup firewall IP! You cannot specify this firewalls IP in this location.";
}
}
$wanip = find_interface_ip(get_real_wan_interface());
if($wanip == $_POST["synchronizetoip"])
$input_errors[] = "CARP sync IP must be the backup firewall ip! You cannot specify this firewalls IP in this location.";
$input_errors[] = "CARP sync IP must be the backup firewall IP! You cannot specify this firewalls IP in this location.";
</custom_php_validation_command>
<custom_add_php_command_late>
/* setup carp interfaces */