diff options
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/status_gateways.php | 2 | ||||
-rw-r--r-- | usr/local/www/widgets/widgets/gateways.widget.php | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/usr/local/www/status_gateways.php b/usr/local/www/status_gateways.php index 8ca69f6..125100b 100755 --- a/usr/local/www/status_gateways.php +++ b/usr/local/www/status_gateways.php @@ -82,7 +82,7 @@ include("head.inc"); <?=strtoupper($gateway['name']);?> </td> <td class="listr" align="center" > - <?=$a_gateways[$gateway['name']['gateway'];?> + <?php echo lookup_gateway_ip_by_name($gateway['name']);?> </td> <td class="listr" align="center" > <?=$target;?> diff --git a/usr/local/www/widgets/widgets/gateways.widget.php b/usr/local/www/widgets/widgets/gateways.widget.php index c2f5645..b8bca28 100644 --- a/usr/local/www/widgets/widgets/gateways.widget.php +++ b/usr/local/www/widgets/widgets/gateways.widget.php @@ -30,7 +30,6 @@ require_once("guiconfig.inc"); require_once("pfsense-utils.inc"); require_once("functions.inc"); -$a_gateways = return_gateways_array(); $gateways_status = array(); $gateways_status = return_gateways_status(); @@ -58,7 +57,7 @@ $counter = 1; <?php $counter++; ?> </td> <td class="listr" align="center" id="gateway<?= $counter; ?>"> - <?=$a_gateways[$gateway['name']]['gateway'];?> + <?php echo lookup_gateway_ip_by_name($gateway['name']);?> <?php $counter++; ?> </td> <td class="listr" align="center" id="gateway<?= $counter; ?>"> |