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)); }; }