runner
This commit is contained in:
parent
5894e42a64
commit
374c5dec47
@ -88,7 +88,7 @@ router.post('/run/:ip?', function(req, res, next){
|
||||
|
||||
var runner = function(res, req, ip){
|
||||
console.log('runner on', ip,'with body:\n', JSON.stringify(req.body));
|
||||
return request.post({url:'http://'+ip, body: JSON.stringify(req.body)}, function(error, response, body){
|
||||
return request.post({url:'http://'+ip, postData: JSON.stringify(req.body)}, function(error, response, body){
|
||||
console.log('request args:', arguments)
|
||||
body = JSON.parse(body);
|
||||
body['ip'] = ip.replace('10.0.', '')
|
||||
|
Loading…
x
Reference in New Issue
Block a user