From d9b20b5aebc6d099bbbe6465c717966f2969e81d Mon Sep 17 00:00:00 2001 From: tigerbot Date: Fri, 21 Jul 2017 17:22:45 -0600 Subject: [PATCH] fixed local bind problem for TCP proxying --- lib/goldilocks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/goldilocks.js b/lib/goldilocks.js index fde77a3..aea33bb 100644 --- a/lib/goldilocks.js +++ b/lib/goldilocks.js @@ -105,11 +105,11 @@ module.exports.create = function (deps, config) { var newConnOpts = {}; ['remote', 'local'].forEach(function (end) { ['Family', 'Address', 'Port'].forEach(function (name) { - newConnOpts[end+name] = conn[end+name]; + newConnOpts['_'+end+name] = conn[end+name]; }); }); - deps.proxy(conn, Object.assign({}, dest, newConnOpts)); + deps.proxy(conn, Object.assign(newConnOpts, dest)); }; }