Fix several typos (#1328)

This commit is contained in:
painor
2019-11-10 11:29:43 +01:00
committed by Lonami
parent 4a1310dc21
commit 38b929b973
5 changed files with 5 additions and 5 deletions

View File

@@ -254,7 +254,7 @@ class PacketCodec(abc.ABC):
"""
This attribute should be re-defined by subclass to define if some
"magic bytes" should be sent to server right after conection is made to
"magic bytes" should be sent to server right after connection is made to
signal which protocol will be used
"""
tag = None

View File

@@ -25,7 +25,7 @@ class ObfuscatedIO:
random = os.urandom(64)
if (random[0] != 0xef and
random[:4] not in keywords and
random[4:4] != b'\0\0\0\0'):
random[4:8] != b'\0\0\0\0'):
break
random = bytearray(random)