From c523be5294511be20bb5d01d3c4e20275f95109e Mon Sep 17 00:00:00 2001 From: BiffoBear Date: Wed, 2 Nov 2022 11:01:21 +0700 Subject: [PATCH] Fixed a TypeError in adafruit_wiznet5k_dns.DNS._build_dns_question() --- adafruit_wiznet5k/adafruit_wiznet5k_dns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_wiznet5k/adafruit_wiznet5k_dns.py b/adafruit_wiznet5k/adafruit_wiznet5k_dns.py index abf4ca2..5a89afb 100644 --- a/adafruit_wiznet5k/adafruit_wiznet5k_dns.py +++ b/adafruit_wiznet5k/adafruit_wiznet5k_dns.py @@ -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