This commit is contained in:
William Mantly 2016-04-22 12:59:52 -04:00
parent fbc9a308b9
commit 96b032f816

View File

@ -29,8 +29,10 @@ var lxcTimeout = function(ip, time){
var runner = function(req, res, ip){ var runner = function(req, res, ip){
lxcTimeout(ip); lxcTimeout(ip);
console.log('runner!!!');
return request.post({url:'http://'+ip, body: JSON.stringify({code: req.params.code}) }, function(error, response, body){ 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.', ''); body['ip'] = ip.replace('10.0.', '');
return res.json(body); return res.json(body);
}); });