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); }