diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2015-11-26 16:26:02 -0600 |
---|---|---|
committer | Luiz Otavio O Souza <luiz@netgate.com> | 2015-11-26 16:26:02 -0600 |
commit | 815decf9e54f09a93b017e9ab7a82fd118917920 (patch) | |
tree | 98801d6991a177c640637accb7298294c1c729a0 /src/etc/inc/pfsense-utils.inc | |
parent | a5bed5a2d4847bece0cd7c72088f9be57ff0deee (diff) | |
download | pfsense-815decf9e54f09a93b017e9ab7a82fd118917920.zip pfsense-815decf9e54f09a93b017e9ab7a82fd118917920.tar.gz |
Make is_ipaddr_configured() work with CARP.
Check against the correct variable. Ticket #4858
Diffstat (limited to 'src/etc/inc/pfsense-utils.inc')
-rw-r--r-- | src/etc/inc/pfsense-utils.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/pfsense-utils.inc b/src/etc/inc/pfsense-utils.inc index fef70cc..b32130a 100644 --- a/src/etc/inc/pfsense-utils.inc +++ b/src/etc/inc/pfsense-utils.inc @@ -2678,7 +2678,7 @@ function where_is_ipaddr_configured($ipaddr, $ignore_if = "", $check_localip = f $interface_list_vips = get_configured_vips_list(true); foreach ($interface_list_vips as $id => $vip) { /* Skip CARP interfaces here since they were already checked above */ - if ($id == $ignore_vip_id || (substr($ignore_if, 0, 4) == '_vip') && substr($ignore_vip_if, 5) == $vip['uniqdid']) { + if ($id == $ignore_vip_id || (substr($ignore_if, 0, 4) == '_vip') && $ignore_vip_if === $vip['if']) { continue; } if (strcasecmp($ipaddr, $vip['ipaddr']) == 0) { |