Skip to content

Commit 175e892

Browse files
authored
Merge pull request #26 from kevinaj/accept-authoritative-dns
Accept Authoritative DNS Responses
2 parents b4f36e4 + f9c2828 commit 175e892

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
@@ -140,7 +140,7 @@ def _parse_dns_response(
140140
return -1
141141
# Validate flags
142142
flags = int.from_bytes(self._pkt_buf[2:4], "l")
143-
if not flags == 0x8180:
143+
if not flags in (0x8180, 0x8580):
144144
if self._debug:
145145
print("* DNS ERROR: Invalid flags, ", flags)
146146
return -1

0 commit comments

Comments
 (0)