From f13c20b64bd2d453281295bc58dba2ebc5ade453 Mon Sep 17 00:00:00 2001 From: Matt Broadstone Date: Tue, 31 Dec 2019 08:30:18 -0500 Subject: [PATCH] fix: use remote address for stream identifier --- lib/cmap/connection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cmap/connection.js b/lib/cmap/connection.js index 5de1b96e7b..06476a0532 100644 --- a/lib/cmap/connection.js +++ b/lib/cmap/connection.js @@ -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');