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