Fix MSDP byte conversion errors, as per #2044
This commit is contained in:
parent
29f78ae601
commit
03356465db
9 changed files with 68 additions and 36 deletions
|
|
@ -11,9 +11,10 @@ client and update it when the size changes
|
|||
"""
|
||||
from codecs import encode as codecs_encode
|
||||
from django.conf import settings
|
||||
from twisted.python.compat import _bytesChr as bchr
|
||||
|
||||
NAWS = b"\x1f"
|
||||
IS = b"\x00"
|
||||
NAWS = bchr(31) # b"\x1f"
|
||||
IS = bchr(0) # b"\x00"
|
||||
# default taken from telnet specification
|
||||
DEFAULT_WIDTH = settings.CLIENT_DEFAULT_WIDTH
|
||||
DEFAULT_HEIGHT = settings.CLIENT_DEFAULT_HEIGHT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue