mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Remove useless check, CARP does not depend of interface having another IP set before
This commit is contained in:
parent
3ffea31990
commit
c8d87d2aa9
@ -2120,22 +2120,6 @@ function interface_carp_configure(&$vip) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (is_ipaddrv4($vip['subnet'])) {
|
||||
/* Ensure a IP on this interface exists prior to configuring CARP. */
|
||||
$ww_subnet_ip = find_interface_ip($realif);
|
||||
if (!is_ipaddrv4($ww_subnet_ip)) {
|
||||
file_notice("CARP", sprintf(gettext("Interface does not have required IP address in the subnet of virtual IP address %s. Skipping this VIP."), $vip['subnet']), "Firewall: Virtual IP", "");
|
||||
return;
|
||||
}
|
||||
} else if (is_ipaddrv6($vip['subnet'])) {
|
||||
/* Ensure a IP on this interface exists prior to configuring CARP. */
|
||||
$ww_subnet_ip = find_interface_ipv6($realif);
|
||||
if (!is_ipaddrv6($ww_subnet_ip)) {
|
||||
file_notice("CARP", sprintf(gettext("Interface does not have required IPv6 address in the subnet of virtual IPv6 address %s. Skipping this VIP."), $vip['subnet']), "Firewall: Virtual IP", "");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
$vip_password = $vip['password'];
|
||||
$vip_password = escapeshellarg(addslashes(str_replace(" ", "", $vip_password)));
|
||||
if ($vip['password'] != "")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user