Merge pull request #168 from pi-hole/addHostnamesToForwardDests

add Hostname check to Forward Destination array.
This commit is contained in:
Adam Warner
2016-10-17 21:35:09 +01:00
committed by GitHub
+1 -1
View File
@@ -84,7 +84,7 @@
$destinations = array();
foreach ($forwards as $forward) {
$exploded = explode(" ", trim($forward));
$dest = $exploded[count($exploded) - 1];
$dest = hasHostName($exploded[count($exploded) - 1]);
if (isset($destinations[$dest])) {
$destinations[$dest]++;
}