summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-23 04:01:53 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-23 04:01:53 +0000
commitf8269a6f97ac1c45262b7cf649b775dadf1eea30 (patch)
tree21bab5f080a5e9a41fda3a59aec3115f7e9f5d0b /etc
parentffeca18d6a9786907f297e9ae7e1ea64797a133d (diff)
downloadpfsense-f8269a6f97ac1c45262b7cf649b775dadf1eea30.zip
pfsense-f8269a6f97ac1c45262b7cf649b775dadf1eea30.tar.gz
Correctly find carp interface
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 468f71f..fc36093 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -178,8 +178,8 @@ function get_pfsync_interface_status($pfsyncinterface) {
*/
function find_carp_interface($ip) {
for($x=0; $x<99; $x++) {
- $ifconfig = exec_command("/sbin/ifconfig {$int}");
- if(stristr($ifconfig,$ip) <> false)
+ $ifconfig = exec_command("/sbin/ifconfig carp{$x}");
+ if(stristr($ifconfig,$ip))
return "carp" . $x;
}
}
OpenPOWER on IntegriCloud