summaryrefslogtreecommitdiffstats
path: root/etc/inc/gwlb.inc
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-09-13 18:49:51 +0200
committersmos <seth.mos@dds.nl>2012-09-13 18:49:51 +0200
commit017817c25d8121a386df29d4f73551a73ea16d3a (patch)
tree7b956e3196cd0a1b97d26d63253b7718b6cdfdfa /etc/inc/gwlb.inc
parent2223aa954ed15c537438ccd1cd6895585a64ff3f (diff)
downloadpfsense-017817c25d8121a386df29d4f73551a73ea16d3a.zip
pfsense-017817c25d8121a386df29d4f73551a73ea16d3a.tar.gz
Make the gateway group member check a boolean, might convert to something else at a later time so we could check group memberships.
Also launch the dyndns configure if the dyndns interface is a gateway group name, could check membership later if we wanted.
Diffstat (limited to 'etc/inc/gwlb.inc')
-rw-r--r--etc/inc/gwlb.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index 593d522..20149b4 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -989,9 +989,9 @@ function interface_gateway_group_member($interface) {
foreach($group['item'] as $item) {
$elements = explode("|", $item);
$gwname = $elements[0];
- $gwif = lookup_gateway_interface_by_name($gwname);
- if($gwif == $interface)
- return $group['name'];
+ $gwif = get_real_interface(lookup_gateway_interface_by_name($gwname));
+ if($gwif == $realif)
+ return true;
}
}
}
OpenPOWER on IntegriCloud