summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorsmos <seth.mos@dds.nl>2012-06-05 07:45:39 +0200
committersmos <seth.mos@dds.nl>2012-06-05 07:45:39 +0200
commitfbf0d4d3d4ff7bfab6e3f4afec5dbbe2341e099c (patch)
tree211a7f748f76d50e72cbe8f39f316919fa4eb695 /etc/inc
parent36b2d82d68964195afca178ea20f3765e07bdbd9 (diff)
downloadpfsense-fbf0d4d3d4ff7bfab6e3f4afec5dbbe2341e099c.zip
pfsense-fbf0d4d3d4ff7bfab6e3f4afec5dbbe2341e099c.tar.gz
Make sure to return the Null route gateways too for looking up a gateway entry
Diffstat (limited to 'etc/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 9ebdf43..e0a8ef5 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -811,7 +811,7 @@ function dhclient_update_gateway_groups_defaultroute($interface = "wan") {
function lookup_gateway_ip_by_name($name) {
- $gateways_arr = return_gateways_array();
+ $gateways_arr = return_gateways_array(false, true);
foreach ($gateways_arr as $gname => $gw) {
if ($gw['name'] == $name || $gname == $name)
return $gw['gateway'];
@@ -822,7 +822,7 @@ function lookup_gateway_ip_by_name($name) {
function lookup_gateway_monitor_ip_by_name($name) {
- $gateways_arr = return_gateways_array();
+ $gateways_arr = return_gateways_array(false, true);
if (!empty($gateways_arr[$name])) {
$gateway = $gateways_arr[$name];
if(!is_ipaddr($gateway['monitor']))
@@ -836,7 +836,7 @@ function lookup_gateway_monitor_ip_by_name($name) {
function lookup_gateway_interface_by_name($name) {
- $gateways_arr = return_gateways_array();
+ $gateways_arr = return_gateways_array(false, true);
if (!empty($gateways_arr[$name])) {
$interfacegw = $gateway['interface'];
return ($interfacegw);
OpenPOWER on IntegriCloud