From 9764f4701f421904fcea0a939845551568e756ea Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 30 Apr 2007 20:58:16 +0000 Subject: Take into account the DHCP wan ip address as well --- usr/local/pkg/carp_settings.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr/local') 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."; /* setup carp interfaces */ -- cgit v1.1