Compare commits

..

No commits in common. "e699c44480a08eaa1d4c097376ac6e305836f23a" and "bcd332fea174a2bf515d181b693767ece77a6bfb" have entirely different histories.

2 changed files with 29 additions and 29 deletions

View File

@ -266,34 +266,34 @@ function extractSocketProps(socket, propNames) {
propNames.forEach(function (propName) { propNames.forEach(function (propName) {
props[propName] = socket['_' + propName]; props[propName] = socket['_' + propName];
}); });
} else if (socket._handle) { } else if (
if ( socket._handle
socket._handle._parent && socket._handle._parent
&& socket._handle._parent.owner && socket._handle._parent.owner
&& socket._handle._parent.owner.stream && socket._handle._parent.owner.stream
&& socket._handle._parent.owner.stream.remotePort && socket._handle._parent.owner.stream.remotePort
) { ) {
propNames.forEach(function (propName) { propNames.forEach(function (propName) {
props[propName] = socket._handle._parent.owner.stream[propName]; props[propName] = socket._handle._parent.owner.stream[propName];
}); });
} else if ( } else if (
socket._handle._parentWrap socket._handle._parentWrap
&& socket._handle._parentWrap.remotePort && socket._handle._parentWrap
) { && socket._handle._parentWrap.remotePort
propNames.forEach(function (propName) { ) {
props[propName] = socket._handle._parentWrap[propName]; propNames.forEach(function (propName) {
}); props[propName] = socket._handle._parentWrap[propName];
} else if ( });
socket._handle._parentWrap } else if (
&& socket._handle._parentWrap._handle socket._handle._parentWrap
&& socket._handle._parentWrap._handle.owner && socket._handle._parentWrap._handle
&& socket._handle._parentWrap._handle.owner.stream && socket._handle._parentWrap._handle.owner
&& socket._handle._parentWrap._handle.owner.stream.remotePort && socket._handle._parentWrap._handle.owner.stream
) { && socket._handle._parentWrap._handle.owner.stream.remotePort
propNames.forEach(function (propName) { ) {
props[propName] = socket._handle._parentWrap._handle.owner.stream[propName]; propNames.forEach(function (propName) {
}); props[propName] = socket._handle._parentWrap._handle.owner.stream[propName];
} });
} }
return props; return props;
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "proxy-packer", "name": "proxy-packer",
"version": "2.0.3", "version": "2.0.2",
"description": "A strategy for packing and unpacking a proxy stream (i.e. packets through a tunnel). Handles multiplexed and tls connections. Used by telebit and telebitd.", "description": "A strategy for packing and unpacking a proxy stream (i.e. packets through a tunnel). Handles multiplexed and tls connections. Used by telebit and telebitd.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {