From 9061180260ace608a7b16a1360b5657468364724 Mon Sep 17 00:00:00 2001 From: Jonney Date: Mon, 15 Mar 2021 13:00:10 +0800 Subject: [PATCH] Forget to return in setup_iv() Exception: 'NoneType' object has no attribute 'iv' from 127.0.0.1 --- pproxy/cipher.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pproxy/cipher.py b/pproxy/cipher.py index 12af3ce..2dfbd8e 100644 --- a/pproxy/cipher.py +++ b/pproxy/cipher.py @@ -43,6 +43,7 @@ def setup_iv(self, iv=None): self._buffer = bytearray() self._declen = None self.setup() + return self @property def nonce(self): ret = self._nonce.to_bytes(self.NONCE_LENGTH, 'little')