MicroWebCli icon indicating copy to clipboard operation
MicroWebCli copied to clipboard

line number 256: elif b[3] == 0x03:

Open mansour1991 opened this issue 6 years ago • 1 comments

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]

mansour1991 avatar Feb 21 '19 13:02 mansour1991

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)

jczic avatar Feb 21 '19 21:02 jczic