"$debug_request[0]", ":ip" => $_SERVER["REMOTE_ADDR"])); 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, $debug_settings["port"]))); Taskmanager::submit('DispatchRelay', $data, true); }