diff options
author | smos <seth.mos@dds.nl> | 2012-09-13 18:49:51 +0200 |
---|---|---|
committer | smos <seth.mos@dds.nl> | 2012-09-13 18:49:51 +0200 |
commit | 017817c25d8121a386df29d4f73551a73ea16d3a (patch) | |
tree | 7b956e3196cd0a1b97d26d63253b7718b6cdfdfa /etc/inc/gwlb.inc | |
parent | 2223aa954ed15c537438ccd1cd6895585a64ff3f (diff) | |
download | pfsense-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.inc | 6 |
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; } } } |