From 055775de2fe6588b728fbe010593d5732edd9dea Mon Sep 17 00:00:00 2001 From: Programmix Date: Sat, 4 Mar 2017 00:33:19 -0800 Subject: [PATCH] Fix for #1219 (sodium methods) (#1220) * Change node-opus methods * Try using crypto_secretbox(_open)_easy * Wrong open method name --- src/client/voice/util/Secretbox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/voice/util/Secretbox.js b/src/client/voice/util/Secretbox.js index 5aa80b088..dddb2c1a3 100644 --- a/src/client/voice/util/Secretbox.js +++ b/src/client/voice/util/Secretbox.js @@ -1,8 +1,8 @@ try { const sodium = require('sodium'); module.exports = { - open: sodium.api.crypto_secretbox_open, - close: sodium.api.crypto_secretbox, + open: sodium.api.crypto_secretbox_open_easy, + close: sodium.api.crypto_secretbox_easy, }; } catch (err) { const tweetnacl = require('tweetnacl');