From 53184470e94964a4a171b41957715b255c6f9d5f Mon Sep 17 00:00:00 2001 From: Alexander Bersenev Date: Tue, 13 Aug 2019 15:23:47 +0500 Subject: [PATCH] fixed cached readings in fake tls --- mtprotoproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtprotoproxy.py b/mtprotoproxy.py index 68c28c9..ab65d31 100755 --- a/mtprotoproxy.py +++ b/mtprotoproxy.py @@ -371,7 +371,7 @@ class FakeTLSStreamReader(LayeredStreamReaderBase): if self.buf and not ignore_buf: data = self.buf self.buf = bytearray() - return data + return bytes(data) while True: tls_rec_type = await self.upstream.readexactly(1)