From 6d02c5b2d326dda26572c99b844c3faee5ad5e5e Mon Sep 17 00:00:00 2001 From: Christoph Schulthess Date: Wed, 22 Feb 2017 14:52:56 +0100 Subject: debugrequest_TLS added --- apis/debugrequest_TLS.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 apis/debugrequest_TLS.php diff --git a/apis/debugrequest_TLS.php b/apis/debugrequest_TLS.php new file mode 100644 index 00000000..4af386f4 --- /dev/null +++ b/apis/debugrequest_TLS.php @@ -0,0 +1,27 @@ + "$debug_request[0]", ":ip" => $_SERVER["REMOTE_ADDR"])); + +if ($validclient == false) { + http_response_code(400); +} else { + http_response_code(200); + $data = array("hosts" => array($_SERVER["REMOTE_ADDR"], $debug_settings["debugServer"]), + "ports" => array($port, intval($debug_settings["port"])), "descs" => array("bwlpclient", "debugserver")); + $taskstruct = Taskmanager::submit('DispatchSSLRelay', $data); + //$taskstruct = Taskmanager::submit('FantasyTask'); + //$taskstruct = Taskmanager::submit('DummyTask'); + error_log(print_r($taskstruct, true)); + Property::setDebugTaskStruct($taskstruct); +} + -- cgit v1.2.3-55-g7522