From 185aa45e4fc5f896bd6c95752a913bccde1f87dd Mon Sep 17 00:00:00 2001 From: Marcus Date: Fri, 2 Apr 2021 10:08:02 -0400 Subject: [PATCH] put identity name into handshake --- lib/STP/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/STP/index.js b/lib/STP/index.js index 0c3c8ad..ef23e06 100644 --- a/lib/STP/index.js +++ b/lib/STP/index.js @@ -158,7 +158,9 @@ class STPSocket extends EventEmitter { handshake() { const pk = this.identity.publicKey; - const packet = new KeyExchangePacket(pk); + const packet = new KeyExchangePacket(pk, { + name: this.identity.name + }); const buffer = packet.toBuffer(); this.tcpSocket.write(buffer); }