Show More
@@ -770,7 +770,7 b' class DNSOutgoing(object):' | |||||
770 |
|
770 | |||
771 | def writeString(self, value, length): |
|
771 | def writeString(self, value, length): | |
772 | """Writes a string to the packet""" |
|
772 | """Writes a string to the packet""" | |
773 |
format = |
|
773 | format = '!' + str(length) + 's' | |
774 | self.data.append(struct.pack(format, value)) |
|
774 | self.data.append(struct.pack(format, value)) | |
775 | self.size += length |
|
775 | self.size += length | |
776 |
|
776 |
General Comments 0
You need to be logged in to leave comments.
Login now