crunner
This commit is contained in:
parent
fbc9a308b9
commit
96b032f816
@ -29,8 +29,10 @@ var lxcTimeout = function(ip, time){
|
||||
|
||||
var runner = function(req, res, ip){
|
||||
lxcTimeout(ip);
|
||||
console.log('runner!!!');
|
||||
return request.post({url:'http://'+ip, body: JSON.stringify({code: req.params.code}) }, function(error, response, body){
|
||||
body = JSON.parse(body);
|
||||
console.log(body);
|
||||
// body = JSON.parse(body);
|
||||
body['ip'] = ip.replace('10.0.', '');
|
||||
return res.json(body);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user