Fix issues with using hop for new core

bug/bundler_fix
scriptjunkie 2015-09-20 22:44:21 -05:00
parent bd40d020e0
commit 7d2a2a8b64
2 changed files with 8 additions and 1 deletions

View File

@ -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{

View File

@ -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.
#