Skip to content

Commit 859c93b

Browse files
authored
Merge pull request #72 from BiffoBear/Fix_TypeError_in_DNS
Fixed a TypeError in adafruit_wiznet5k_dns.DNS._build_dns_question()
2 parents c1ceb98 + c523be5 commit 859c93b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_wiznet5k/adafruit_wiznet5k_dns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def _build_dns_question(self):
244244
# append the sz of the section
245245
self._pkt_buf.append(len(host[i]))
246246
# append the section data
247-
self._pkt_buf += host[i]
247+
self._pkt_buf += bytes(host[i], "utf-8")
248248
# end of the name
249249
self._pkt_buf.append(0x00)
250250
# Type A record

0 commit comments

Comments
 (0)