Commit 6acd4980 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) quite obscure, return_gateways_array, but it's probably better to...

(legacy) quite obscure, return_gateways_array, but it's probably better to return an ip if we know the gateway...
parent 2df71ab1
...@@ -899,7 +899,8 @@ function return_gateway_groups_array() ...@@ -899,7 +899,8 @@ function return_gateway_groups_array()
function lookup_gateway_ip_by_name($name) { function lookup_gateway_ip_by_name($name) {
$gateways_arr = return_gateways_array(false, true); $gateways_arr = return_gateways_array(true, true);
foreach ($gateways_arr as $gname => $gw) { foreach ($gateways_arr as $gname => $gw) {
if ($gw['name'] === $name || $gname === $name) if ($gw['name'] === $name || $gname === $name)
return $gw['gateway']; return $gw['gateway'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment