summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2010-07-21 23:18:00 -0400
committerChris Buechler <cmb@pfsense.org>2010-07-21 23:18:00 -0400
commitc55e45800d839e6e46d2704097d43563247fb06c (patch)
treebdd6328daf4e027e6a358debf7bdaad0f6a2e0a9 /etc
parent5c49cf58c79f6d3c22182e1a4139be82df1bfa80 (diff)
downloadpfsense-c55e45800d839e6e46d2704097d43563247fb06c.zip
pfsense-c55e45800d839e6e46d2704097d43563247fb06c.tar.gz
only match with a space behind the IP, otherwise 10.0.0.6 CARP IP may match against interface IP 10.0.0.60, and show incorrect info on the CARP status page
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 64e3b37..73e5554 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2765,7 +2765,7 @@ function find_carp_interface($ip) {
foreach ($config['virtualip']['vip'] as $vip) {
if ($vip['mode'] == "carp" || $vip['mode'] == "carpdev") {
$carp_ip = get_interface_ip($vip['interface']);
- $if = `ifconfig | grep '$ip' -B1 | head -n1 | cut -d: -f1`;
+ $if = `ifconfig | grep '$ip ' -B1 | head -n1 | cut -d: -f1`;
if ($if)
return $if;
}
@@ -3210,4 +3210,4 @@ function setup_pppoe_reset_file($pppif, $iface="") {
unlink_if_exists($cron_file);
}
-?>
+?> \ No newline at end of file
OpenPOWER on IntegriCloud