fixed local bind problem for TCP proxying

This commit is contained in:
tigerbot 2017-07-21 17:22:45 -06:00
parent c34b0444c1
commit d9b20b5aeb
1 changed files with 2 additions and 2 deletions

View File

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