crunner
This commit is contained in:
parent
77d8f2b743
commit
2ea36dc963
@ -30,7 +30,7 @@ var lxcTimeout = function(ip, time){
|
||||
var runner = function(req, res, ip){
|
||||
lxcTimeout(ip);
|
||||
console.log('code to run:\n', req.body);
|
||||
return request.post({url:'http://'+ip, body: JSON.stringify({code: req.params.code}) }, function(error, response, body){
|
||||
return request.post({url:'http://'+ip, body: req.body }, function(error, response, body){
|
||||
console.log(body);
|
||||
// body = JSON.parse(body);
|
||||
body['ip'] = ip.replace('10.0.', '');
|
||||
|
Loading…
x
Reference in New Issue
Block a user