Open nevercast opened 5 years ago
Oops. That's a straightforward bug. There is one too many zeros in that list. I usually only use the code to serve a responder rather than send out questions, which is why I hadn't picked that up. I will fix the code but in the mean time you can just delete the last zero on line 327.
FWIW, I just checked and it seems that the reason that I had not spotted this bug before is that the micropython implementation of struct.pack_into()
ignores extra arguments.
https://github.com/nickovs/slimDNS/blob/master/slimDNS.py#L326-L327
I'm trying to create a Server object in Python 3.6 on my Windows machine for testing, and I get a
pack_into
error, it seems there are 7 arguments for the 6 unsigned shorts thatpack_into
is expecting.I'm using master at the time of this issue (https://github.com/nickovs/slimDNS/tree/aac0c2f4c60900f5e213f1002f933b3444c260c3)