summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbgarga <garga@FreeBSD.org>2013-03-07 01:48:56 -0800
committerrbgarga <garga@FreeBSD.org>2013-03-07 01:48:56 -0800
commiteff8ea7dfa46d2aa55915e1e3850b74803491439 (patch)
treeac4f11dc45b69953c64ffb0abb3fccffc8d0a55f
parent379ec2f74ee78e3db7a705741a665f1786d0277b (diff)
parent2dbd89249674e8cd24373fd7d48db138764b9459 (diff)
downloadpfsense-eff8ea7dfa46d2aa55915e1e3850b74803491439.zip
pfsense-eff8ea7dfa46d2aa55915e1e3850b74803491439.tar.gz
Merge pull request #467 from phil-davis/master
Bandwidth by IP - display static map names also when FQDN selected
-rwxr-xr-xusr/local/www/bandwidth_by_ip.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/bandwidth_by_ip.php b/usr/local/www/bandwidth_by_ip.php
index f14af21..9079f8f 100755
--- a/usr/local/www/bandwidth_by_ip.php
+++ b/usr/local/www/bandwidth_by_ip.php
@@ -40,7 +40,7 @@ $hostipformat = $_GET['hostipformat'];
$iplookup = array();
// If hostname display is requested and the DNS forwarder does not already have DHCP static names registered,
// then load the DHCP static mappings into an array keyed by IP address.
-if (($hostipformat == "hostname") && (!isset($config['dnsmasq']['regdhcpstatic']))) {
+if (($hostipformat != "") && (!isset($config['dnsmasq']['regdhcpstatic']))) {
if (is_array($config['dhcpd'])) {
foreach ($config['dhcpd'] as $ifdata) {
if (is_array($ifdata['staticmap'])) {
OpenPOWER on IntegriCloud