Merge pull request #593 from pi-hole/fix/non-local-FTL

Explicitly allow non-local FTL installations
This commit is contained in:
DL6ER
2017-10-23 08:47:02 +02:00
committed by GitHub
3 changed files with 16 additions and 5 deletions
+2 -1
View File
@@ -12,7 +12,8 @@ if(!isset($api))
die("Direct call to api_FTL.php is not allowed!");
}
$socket = connectFTL("127.0.0.1");
// $FTL_IP is defined in api.php
$socket = connectFTL($FTL_IP);
if (isset($_GET['type'])) {
$data["type"] = "FTL";