MicroWebCli
MicroWebCli copied to clipboard
line number 256: elif b[3] == 0x03:
According to rfc 1928, page 5: "the first octet of the address field contains the number of octets of name that follow"
So it should be : (line 257) in microWebCli.py
l = b[4]
not
l = b[3]
Thanks!
I've fixed the reading of the header :
if b[3] == 0x01 :
l = 4
elif b[3] == 0x03 :
l = cli.read(1)[0]
elif b[3] == 0x04 :
l = 16
cli.read(l + 2)