Show More
@@ -292,7 +292,7 b' class DNSQuestion(DNSEntry):' | |||
|
292 | 292 | """A DNS question entry""" |
|
293 | 293 | |
|
294 | 294 | def __init__(self, name, type, clazz): |
|
295 |
if |
|
|
295 | if isinstance(name, str): | |
|
296 | 296 | name = name.encode('ascii') |
|
297 | 297 | if not name.endswith(b".local."): |
|
298 | 298 | raise NonLocalNameException(name) |
General Comments 0
You need to be logged in to leave comments.
Login now