WIP : fallback to old parsing doesn't work

pull/1/head
ansuz 2016-05-20 17:46:48 +02:00
parent f04be53d11
commit d99bb8ff84
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,10 @@ define([
if (!isBencoded(msg)) {
return encryptStr(msg, key);
}
/* Currently this fails because messages have already been tampered
with before they get here. */
var spl = splitMessage(msg, true);
var json = JSON.parse(spl[1]);
// non-patches are not encrypted.