summaryrefslogtreecommitdiffstats
path: root/apis/debugrequest.php
diff options
context:
space:
mode:
authorChristoph Schulthess2017-02-21 16:18:45 +0100
committerChristoph Schulthess2017-02-21 16:18:45 +0100
commit4201f8e7e0ac3cb1fccccd2785fb32aac7311591 (patch)
tree216d2d0aa7d15378efccd7c80b76965c0ee70534 /apis/debugrequest.php
parentmhpf (diff)
downloadslx-admin-4201f8e7e0ac3cb1fccccd2785fb32aac7311591.tar.gz
slx-admin-4201f8e7e0ac3cb1fccccd2785fb32aac7311591.tar.xz
slx-admin-4201f8e7e0ac3cb1fccccd2785fb32aac7311591.zip
debugconfig and -request
Diffstat (limited to 'apis/debugrequest.php')
-rw-r--r--apis/debugrequest.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/apis/debugrequest.php b/apis/debugrequest.php
index 8558de67..2396da78 100644
--- a/apis/debugrequest.php
+++ b/apis/debugrequest.php
@@ -16,9 +16,12 @@ if ($validclient == false) {
http_response_code(400);
} else {
http_response_code(200);
- $data = json_encode(array("hosts" => array($_SERVER["REMOTE_ADDR"], $debug_settings["debugServer"]),
- "ports" => array($port, intval($debug_settings["port"])), "descs" => array("bwlpclient", "debugserver")));
- $taskstruct = Taskmanager::submit('DispatchRelay', $data, true);
+ $data = array("hosts" => array($_SERVER["REMOTE_ADDR"], $debug_settings["debugServer"]),
+ "ports" => array($port, intval($debug_settings["port"])), "descs" => array("bwlpclient", "debugserver"));
+ $taskstruct = Taskmanager::submit('DispatchRelay', $data);
+ //$taskstruct = Taskmanager::submit('FantasyTask');
+ //$taskstruct = Taskmanager::submit('DummyTask');
+ error_log(print_r($taskstruct, true));
Property::setDebugTaskStruct($taskstruct);
}