Skip to content

Commit

Permalink
fix: use remote address for stream identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Jan 1, 2020
1 parent 3844dd8 commit f13c20b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cmap/connection.js
Expand Up @@ -257,7 +257,7 @@ function messageHandler(conn) {

function streamIdentifier(stream) {
if (typeof stream.address === 'function') {
return `${stream.address().address}:${stream.address().port}`;
return `${stream.remoteAddress}:${stream.remotePort}`;
}

return uuidV4().toString('hex');
Expand Down

0 comments on commit f13c20b

Please sign in to comment.