Skip to content

Commit

Permalink
Merge pull request #72 from BiffoBear/Fix_TypeError_in_DNS
Browse files Browse the repository at this point in the history
Fixed a TypeError in adafruit_wiznet5k_dns.DNS._build_dns_question()
  • Loading branch information
tekktrik authored Nov 2, 2022
2 parents c1ceb98 + c523be5 commit 859c93b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_wiznet5k/adafruit_wiznet5k_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def _build_dns_question(self):
# append the sz of the section
self._pkt_buf.append(len(host[i]))
# append the section data
self._pkt_buf += host[i]
self._pkt_buf += bytes(host[i], "utf-8")
# end of the name
self._pkt_buf.append(0x00)
# Type A record
Expand Down

0 comments on commit 859c93b

Please sign in to comment.