crunner
This commit is contained in:
parent
96c931ba5c
commit
7e2c575a06
@ -32,7 +32,7 @@ var runner = function(req, res, ip){
|
|||||||
lxcTimeout(ip);
|
lxcTimeout(ip);
|
||||||
console.log('code to run:\n', req.body.code);
|
console.log('code to run:\n', req.body.code);
|
||||||
return request.post({url:'http://'+ip, body: JSON.stringify({code: req.body.code}) }, function(error, response, body){
|
return request.post({url:'http://'+ip, body: JSON.stringify({code: req.body.code}) }, function(error, response, body){
|
||||||
console.log(body);
|
console.log(response);
|
||||||
// body = JSON.parse(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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user