This commit is contained in:
William Mantly 2016-02-02 13:30:55 -05:00
parent a6a951f333
commit a0b72ed700

View File

@ -87,7 +87,7 @@ router.get('/list', function(req, res, next) {
router.post('/run/:ip?', function(req, res, next){ router.post('/run/:ip?', function(req, res, next){
var runner = function(res, req, ip){ var runner = function(res, req, ip){
console.log('req body:', req.body); console.log('req body:', req.body);
request.post({url:'http://'+ip, body:req.post}, function(error, response, body){ request.post({url:'http://'+ip, body:req.body}, function(error, response, body){
console.log('runner body:', body) console.log('runner body:', body)
body = JSON.parse(body); body = JSON.parse(body);
body['ip'] = ip.replace('10.0.', '') body['ip'] = ip.replace('10.0.', '')