From 7794e4b2ca489d406fd7a213283b66ebd79d5902 Mon Sep 17 00:00:00 2001 From: william Date: Wed, 3 Feb 2016 17:44:19 -0500 Subject: [PATCH] runner --- routes/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/api.js b/routes/api.js index 358afa9..a7d6887 100644 --- a/routes/api.js +++ b/routes/api.js @@ -11,8 +11,8 @@ var lxc = require('../lxc'); var runner = function(req, res, ip){ return request.post({url:'http://'+ip, form: req.body}, function(error, response, body){ body = JSON.parse(body); - body['ip'] = ip.replace('10.0.', '') - return res.json(body) + body['ip'] = ip.replace('10.0.', ''); + return res.json(body); }); }; var addToRedis = function(){