Fix issues with using hop for new core
parent
bd40d020e0
commit
7d2a2a8b64
|
@ -45,7 +45,7 @@ if($url === "/control"){
|
|||
//get data
|
||||
$postdata = file_get_contents("php://input");
|
||||
//See if we should send anything down
|
||||
if($postdata === 'RECV'){
|
||||
if($postdata === "RECV\x00"){
|
||||
findSendDelete($tempdir, "down_" . bin2hex($url));
|
||||
$fname = $tempdir . "/up_recv_" . bin2hex($url); //Only keep one RECV poll
|
||||
}else{
|
||||
|
|
|
@ -54,6 +54,13 @@ module ReverseHopHttp
|
|||
"tunnel"
|
||||
end
|
||||
|
||||
#
|
||||
# Returns the socket type. (hop)
|
||||
#
|
||||
def type?
|
||||
return 'hop'
|
||||
end
|
||||
|
||||
#
|
||||
# Sets up a handler. Doesn't do much since it's all in start_handler.
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue