Specify one common place for defining the IP of a non-local FTL instance. Fixes #589

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2017-10-02 12:17:21 +02:00
parent 2b5e89be35
commit fcf2eb663f
3 changed files with 16 additions and 5 deletions

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";