From 0bc36a07385ab7134d257c8e9e99d07775ff357f Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Fri, 25 Jan 2019 11:57:16 +0300 Subject: [PATCH] nozlib: add patch --- patches/nozlib/835.patch | 20 ++++++++++++++++++++ patches/nozlib/README.md | 7 +++++++ 2 files changed, 27 insertions(+) create mode 100644 patches/nozlib/835.patch create mode 100644 patches/nozlib/README.md diff --git a/patches/nozlib/835.patch b/patches/nozlib/835.patch new file mode 100644 index 0000000..adb36c1 --- /dev/null +++ b/patches/nozlib/835.patch @@ -0,0 +1,20 @@ +diff -crB -x dist -x build com.discord-835-base/smali/com/discord/gateway/GatewaySocket.smali com.discord-835/smali/com/discord/gateway/GatewaySocket.smali +*** com.discord-835-base/smali/com/discord/gateway/GatewaySocket.smali 2019-01-25 10:57:34.512582250 +0300 +--- com.discord-835/smali/com/discord/gateway/GatewaySocket.smali 2019-01-25 11:55:34.384472798 +0300 +*************** +*** 1033,1039 **** + + invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; + +! const-string p1, "/?encoding=json&v=6&compress=zlib-stream" + + invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; + +--- 1033,1039 ---- + + invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; + +! const-string p1, "/?encoding=json&v=6" + + invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; + diff --git a/patches/nozlib/README.md b/patches/nozlib/README.md new file mode 100644 index 0000000..36d2a81 --- /dev/null +++ b/patches/nozlib/README.md @@ -0,0 +1,7 @@ +## DisTok CutTheCord: No zlib-stream Patch + +This patch disables zlib-stream field on wss, making it easier to parse it. + +#### Available and tested on: +- 8.3.5g +