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