summaryrefslogtreecommitdiffstats
path: root/usr/local/pkg
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-30 20:58:16 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-30 20:58:16 +0000
commit9764f4701f421904fcea0a939845551568e756ea (patch)
tree080ba8157c9d9358f5ff21c8a22ac820fed41242 /usr/local/pkg
parenta8963d2628e1f22e01af6750d69e452cb483957c (diff)
downloadpfsense-9764f4701f421904fcea0a939845551568e756ea.zip
pfsense-9764f4701f421904fcea0a939845551568e756ea.tar.gz
Take into account the DHCP wan ip address as well
Diffstat (limited to 'usr/local/pkg')
-rw-r--r--usr/local/pkg/carp_settings.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/pkg/carp_settings.xml b/usr/local/pkg/carp_settings.xml
index 288cb5b..6ea7ebd 100644
--- a/usr/local/pkg/carp_settings.xml
+++ b/usr/local/pkg/carp_settings.xml
@@ -171,7 +171,10 @@
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.";
}
- }
+ }
+ $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.";
</custom_php_validation_command>
<custom_add_php_command_late>
/* setup carp interfaces */
OpenPOWER on IntegriCloud