Remove useless SecretKey class

This commit is contained in:
Amish Shah
2017-10-26 14:02:44 +01:00
parent 3e3e6f9af7
commit ac0cc9a009
5 changed files with 7 additions and 22 deletions

View File

@@ -105,7 +105,7 @@ class StreamDispatcher extends Writable {
packetBuffer.writeUIntBE(this.player.voiceConnection.authentication.ssrc, 8, 4);
packetBuffer.copy(nonce, 0, 0, 12);
buffer = secretbox.methods.close(buffer, nonce, this.player.voiceConnection.authentication.secretKey.key);
buffer = secretbox.methods.close(buffer, nonce, this.player.voiceConnection.authentication.secretKey);
for (let i = 0; i < buffer.length; i++) packetBuffer[i + 12] = buffer[i];
return packetBuffer;