Skip to content

Commit f13c20b

Browse files
committed
fix: use remote address for stream identifier
1 parent 3844dd8 commit f13c20b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cmap/connection.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ function messageHandler(conn) {
257257

258258
function streamIdentifier(stream) {
259259
if (typeof stream.address === 'function') {
260-
return `${stream.address().address}:${stream.address().port}`;
260+
return `${stream.remoteAddress}:${stream.remotePort}`;
261261
}
262262

263263
return uuidV4().toString('hex');

0 commit comments

Comments
 (0)